mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 13:36:16 +02:00
* Deprecated explicit prompt.hjson/general.promptFile, etc.: menu.hjson can simply include any number of files * All menus and themes, their events, etc. are managed by ThemeManager allowing includes, refs, etc. and much cleaner code
17 lines
414 B
JavaScript
17 lines
414 B
JavaScript
/* jslint node: true */
|
|
'use strict';
|
|
|
|
const Config = require('./config.js').get;
|
|
|
|
// deps
|
|
const paths = require('path');
|
|
|
|
exports.getConfigPath = getConfigPath;
|
|
|
|
function getConfigPath(filePath) {
|
|
// |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);
|
|
}
|
|
return filePath;
|
|
}
|