Mega rejig!

This commit is contained in:
David Stephens 2017-11-22 23:27:33 +00:00
parent 617f0ef07e
commit 57d46dd57e
129 changed files with 153 additions and 154 deletions

View file

@ -1,16 +1,15 @@
/* jslint node: true */
'use strict';
var configCache = require('./config_cache.js');
var paths = require('path');
const Config = require('./config.js').config;
const configCache = require('./config_cache.js');
const paths = require('path');
exports.getFullConfig = getFullConfig;
function getFullConfig(filePath, cb) {
// |filePath| is assumed to be in 'mods' if it's only a file name
if('.' === paths.dirname(filePath)) {
filePath = paths.join(__dirname, '../mods', filePath);
filePath = paths.join(Config.paths.config, filePath);
}
configCache.getConfig(filePath, function loaded(err, configJson) {