From: Jérôme Benoit Date: Thu, 8 Oct 2020 09:09:14 +0000 (+0200) Subject: Use absolute path from the current directory for configuration file. X-Git-Tag: v1.0.1-0~303 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2bea9f9459243a6e3df7d1206c697e15a9ef384f;p=e-mobility-charging-stations-simulator.git Use absolute path from the current directory for configuration file. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.js b/src/utils/Configuration.js index 7393626b..65915f04 100644 --- a/src/utils/Configuration.js +++ b/src/utils/Configuration.js @@ -6,7 +6,7 @@ class Configuration { // Read the config file static getConfig() { if (!Configuration.configurationFile) { - Configuration.configurationFile = JSON.parse(fs.readFileSync('src/assets/config.json', 'utf8')); + Configuration.configurationFile = JSON.parse(fs.readFileSync('./src/assets/config.json', 'utf8')); } return Configuration.configurationFile; }