Files
2026-09-22 16:08:12 +08:00

11 lines
468 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""冻结产物的入口脚本(PyInstaller 与 Nuitka 共用)。
不用 ``src/chongming_license_gui/__main__.py``:那个文件用的是包内相对导入
(``from .app import main``),一旦被当作"普通脚本"编译(冻结工具正是这么做的),
相对导入会因为失去包上下文而失败。这里改成绝对导入,冻结与直接运行都成立。
"""
from chongming_license_gui.app import main
if __name__ == "__main__":
main()