diff --git a/app/config/paths.js b/app/config/paths.js index 596ecca1a934..67977e6dec74 100644 --- a/app/config/paths.js +++ b/app/config/paths.js @@ -15,6 +15,18 @@ const devDir = resolve(__dirname, '../..'); const devCfg = join(devDir, cfgFile); const defaultCfg = resolve(__dirname, defaultCfgFile); +if (isDev) { + // if a local config file exists, use it + try { + statSync(devCfg); + cfgPath = devCfg; + cfgDir = devDir; + console.log('using config file:', cfgPath); + } catch (err) { + // ignore + } +} + const plugins = resolve(cfgDir, '.hyper_plugins'); const plugs = { base: plugins, @@ -39,18 +51,6 @@ const defaultPlatformKeyPath = () => { } }; -if (isDev) { - // if a local config file exists, use it - try { - statSync(devCfg); - cfgPath = devCfg; - cfgDir = devDir; - console.log('using config file:', cfgPath); - } catch (err) { - // ignore - } -} - module.exports = { cfgDir, cfgPath, cfgFile, defaultCfg, icon, defaultPlatformKeyPath, plugs, yarn };