diff --git a/src/py2exe_gui/Resources/__init__.py b/src/py2exe_gui/Resources/__init__.py new file mode 100644 index 0000000..33f8276 --- /dev/null +++ b/src/py2exe_gui/Resources/__init__.py @@ -0,0 +1 @@ +from compiled_resources import * diff --git a/src/py2exe_gui/Widgets/dialog_widgets.py b/src/py2exe_gui/Widgets/dialog_widgets.py index 408853a..9b67732 100644 --- a/src/py2exe_gui/Widgets/dialog_widgets.py +++ b/src/py2exe_gui/Widgets/dialog_widgets.py @@ -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])