fix(utils): 修复更新器文件夹定位问题

This commit is contained in:
DLmaster
2025-02-03 09:47:10 +08:00
parent e34106f857
commit 6f7497cbe9
2 changed files with 3 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ class AUTO_MAA_Updater(QApplication):
if __name__ == "__main__":
# 获取软件自身的路径
app_path = Path.cwd()
app_path = Path(sys.argv[0]).resolve().parent
# 从本地版本信息文件获取当前版本信息
if (app_path / "resources/version.json").exists():