From 10b44bb7abca5af162f086dceb3bef11f0eb7a87 Mon Sep 17 00:00:00 2001 From: zyr17 Date: Tue, 12 Mar 2024 21:39:18 +0800 Subject: [PATCH] update path --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 70a3c62..e46fc7f 100644 --- a/main.js +++ b/main.js @@ -31,7 +31,8 @@ const metadata_query_step = 100; // How many uuids to query once. In test, 850 i const metadata_fetch_delay = 1000; // ms to delay after fetching metadata if (InMacOS) { - let cwd = app.getPath('exe').replace(/\/[^\/]+$/, ''); + // let cwd = app.getPath('exe').replace(/\/[^\/]+$/, ''); + let cwd = app.getAppPath(); console.log('current dir: ' + cwd); dataPath = cwd + '/' + dataPath; }