config: expand home directory in config path.
This commit is contained in:
parent
cecf2c7789
commit
993a27525e
@ -519,8 +519,11 @@ Config.prototype.getPrefix = function getPrefix() {
|
||||
var prefix = this.str('prefix');
|
||||
var network;
|
||||
|
||||
if (prefix)
|
||||
if (prefix) {
|
||||
if (prefix[0] === '~')
|
||||
prefix = util.HOME + prefix.substring(1);
|
||||
return prefix;
|
||||
}
|
||||
|
||||
prefix = util.HOME + '/.' + this.module;
|
||||
network = this.str('network');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user