From 076ee50c0fd74db5e95aefbe9a08a11a991fa555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Mon, 14 Sep 2020 12:14:22 +0200 Subject: [PATCH] Config file path fix --- print/core/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/print/core/config.js b/print/core/config.js index fba30dab99..878caab361 100644 --- a/print/core/config.js +++ b/print/core/config.js @@ -13,7 +13,9 @@ let configFiles = [ ]; for (let configFile of configFiles) { - const filePath = path.join(__dirname, configFile); + if (!configFile.includes(configPath)) + configFile = path.join(__dirname, configFile); + if (fs.existsSync(filePath)) { const conf = require(filePath); for (let prop in conf)