1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02:00

dirname of execPath

This commit is contained in:
Kyle Spearrin 2020-03-09 13:32:22 -04:00
parent d91a24a8e9
commit 60e8aa3518

View File

@ -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) {