dirname of execPath

This commit is contained in:
Kyle Spearrin 2020-03-09 13:32:22 -04:00
parent d91a24a8e9
commit 60e8aa3518
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export class Main {
constructor() { constructor() {
let p = null; let p = null;
const relativeDataDir = path.join(process.execPath, 'bw-data'); const relativeDataDir = path.join(path.dirname(process.execPath), 'bw-data');
if (fs.existsSync(relativeDataDir)) { if (fs.existsSync(relativeDataDir)) {
p = relativeDataDir; p = relativeDataDir;
} else if (process.env.BITWARDENCLI_APPDATA_DIR) { } else if (process.env.BITWARDENCLI_APPDATA_DIR) {