From 60e8aa3518bc5643d7743e91b9142084870298fa Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 9 Mar 2020 13:32:22 -0400 Subject: [PATCH] dirname of execPath --- src/bw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bw.ts b/src/bw.ts index 6825348723..2d2a9161dd 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -75,7 +75,7 @@ export class Main { constructor() { 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)) { p = relativeDataDir; } else if (process.env.BITWARDENCLI_APPDATA_DIR) {