dirname of execPath
This commit is contained in:
parent
d91a24a8e9
commit
60e8aa3518
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue