Mega rejig!
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user