问题
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