修复 `Resource` 未被视为包而在pip安装时被忽略的错误;
修复在 Windows 平台下打包子窗口多功能按键无法打开输出位置的问题;
This commit is contained in:
muzing 2022-12-01 10:05:02 +08:00
parent 73d95d82be
commit 2f89e95b36
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
from compiled_resources import *

View File

@ -215,6 +215,7 @@ class SubProcessDlg(QDialog):
elif btn_text == "打开输出位置":
dist_path = self.parent().packaging_task.script_path.parent / "dist"
if self.parent().running_platform == "Windows":
import os # fmt: skip
os.startfile(dist_path) # type: ignore
elif self.parent().running_platform == "Linux":
subprocess.call(["xdg-open", dist_path])