Skip to content

Commit 57cdd24

Browse files
laviniat1996kriszyp
authored andcommitted
add tilde expansion
1 parent a9d8571 commit 57cdd24

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config/configUtils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ function getConfigPath(param) {
8080
const env = require('../utility/environment/environmentManager.js');
8181
const value = env.get(param);
8282
if (!value || typeof value !== 'string') return value;
83+
if (value.startsWith('~/')) {
84+
return path.join(hdbUtils.getHomeDir(), value.slice(1));
85+
}
8386
if (path.isAbsolute(value)) return value;
8487
const rootPath = env.getHdbBasePath();
8588
if (!rootPath) return value;

0 commit comments

Comments
 (0)