mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
Supply config path to main.js and oputil.js, rather than specific config file
This commit is contained in:
parent
32557975d9
commit
521e38d7e9
4 changed files with 11 additions and 8 deletions
|
@ -7,7 +7,7 @@ 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
|
||||
// |filePath| is assumed to be in the config path if it's only a file name
|
||||
if('.' === paths.dirname(filePath)) {
|
||||
filePath = paths.join(Config.paths.config, filePath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue