0
python setup.py build
을 사용할 때마다 문제가 발생하므로 ws.ini, tcl.dll, tk.dll
등의 모든 파일을 가져 오지 못합니다. 그리고이 파일을 사용하면 내 app.exe가 작동하지 않습니다. 이러한 파일을 복사하여 붙여 넣으려고했는데 응용 프로그램이 정상적으로 작동하지만 자동으로 가져 오는 방법이 필요합니다. 감사합니다. .파일 가져 오기 cx_Freeze
import sys, os
from cx_Freeze import setup, Executable
os.environ['TCL_LIBRARY'] = r'C:\Users\matheus.sales.GTONIATO\AppData\Local\Programs\Python\Python35\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\matheus.sales.GTONIATO\AppData\Local\Programs\Python\Python35\tcl\tk8.6'
build_exe_options = {
"packages": ["os", "configparser", "glob", "xml.dom", "lxml"],
"includes": ["lxml.etree", "lxml._elementpath"],
"include_files": ["img/logo.png", "README.md", "ws.ini", "tcl86t.dll", "tk86t.dll"]
}
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="myapp",
version="1.0.0",
description = "Web Service My App",
options = {"build.exe": build_exe_options},
executables = [Executable("interface.py", base=base)]
)