Skip to content

Commit 764e06b

Browse files
committed
[0.7.1] fix path detection
1 parent 56e9825 commit 764e06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/workers/const/const_update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# module import
22
from json import loads
33
from os import makedirs
4-
from os.path import join, isdir, expanduser, abspath
4+
from os.path import join, expanduser, abspath, exists
55
from platform import system
66

77
# package import
@@ -62,7 +62,7 @@ def run(self, /) -> None:
6262
app_state.scan_status["const_updated"] = True
6363

6464
def _load_from_file(self):
65-
if not isdir(self._base_dir):
65+
if not exists(self._const_path):
6666
return
6767
with open(self._const_path, "r", encoding="utf-8") as f:
6868
self._update_const(loads(f.read()))

0 commit comments

Comments
 (0)