cx_Freeze copies path

拜拜、爱过 提交于 2019-12-10 23:49:52

问题


I am using cx_Freeze to generate a windows binary for my PyQt app. But the binary installer that is generated seems to still contain references to files on MY machine. (The one that generated the binary). So I can't distribute the generated installer to other machines. When the program is launched on another machine it seems look for paths that only exist on my machine.

my setup.py looks like this:

import sys
from cx_Freeze import setup, Executable

    """ To build on windows: python.exe setup.py bdist_msi """

    base = None
    if sys.platform == "win32":
        base = "Win32GUI"

    setup( name = "Checkout",
           version = "0.1",
           description = "",
           options = {"build_exe" : {"includes": "atexit"}},
           executables = [Executable("checkout.py", base=base)])

来源:https://stackoverflow.com/questions/11174819/cx-freeze-copies-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!