mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
dirname of execPath
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user