Skip to content

Commit 2f89e95

Browse files
committed
Bug fix
修复 `Resource` 未被视为包而在pip安装时被忽略的错误; 修复在 Windows 平台下打包子窗口多功能按键无法打开输出位置的问题;
1 parent 73d95d8 commit 2f89e95

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from compiled_resources import *

src/py2exe_gui/Widgets/dialog_widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def handle_multifunction(self) -> None:
215215
elif btn_text == "打开输出位置":
216216
dist_path = self.parent().packaging_task.script_path.parent / "dist"
217217
if self.parent().running_platform == "Windows":
218+
import os # fmt: skip
218219
os.startfile(dist_path) # type: ignore
219220
elif self.parent().running_platform == "Linux":
220221
subprocess.call(["xdg-open", dist_path])

0 commit comments

Comments
 (0)