mirror of
https://github.com/muziing/Py2exe-GUI.git
synced 2025-01-27 17:02:55 +08:00
Bug fix
修复 `Resource` 未被视为包而在pip安装时被忽略的错误; 修复在 Windows 平台下打包子窗口多功能按键无法打开输出位置的问题;
This commit is contained in:
parent
73d95d82be
commit
2f89e95b36
1
src/py2exe_gui/Resources/__init__.py
Normal file
1
src/py2exe_gui/Resources/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from compiled_resources import *
|
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user