Skip to content

Commit

Permalink
修复多开时配置文件的路径错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Jul 25, 2024
1 parent dcb0934 commit 0db25fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion arknights_mower/utils/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def save():
def load():
global conf
if not conf_path.is_file():
conf_path.parent.mkdir(exist_ok=True)
conf = Conf()
save()
with conf_path.open("r", encoding="utf-8") as f:
Expand Down
4 changes: 3 additions & 1 deletion webview_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ def recv_msg():

import sys

from arknights_mower.utils import config, path
from arknights_mower.utils import path

if len(sys.argv) == 2:
path.global_space = sys.argv[1]

from arknights_mower.utils import config

conf = config.conf
tray = conf.webview.tray
token = conf.webview.token
Expand Down

0 comments on commit 0db25fe

Please sign in to comment.