diff --git a/print/core/config.js b/print/core/config.js index 878caab36..e8dd75e4b 100644 --- a/print/core/config.js +++ b/print/core/config.js @@ -16,8 +16,8 @@ for (let configFile of configFiles) { if (!configFile.includes(configPath)) configFile = path.join(__dirname, configFile); - if (fs.existsSync(filePath)) { - const conf = require(filePath); + if (fs.existsSync(configFile)) { + const conf = require(configFile); for (let prop in conf) Object.assign(config[prop], conf[prop]); }