在我的一个loginpage.py文件中,我正在使用os.system(“ python xxx.py”)运行另一个py文件,我为安装文件编写了此逻辑,但是此文件未生成完整的exe文件,任何人都可以告诉我如何生成完整的exe文件。谢谢。
下面给出的是代码:
from cx_Freeze import setup, Executable
exe=Executable(
script="loginpage.py",
base="Win32Gui",
)
includefiles=[]
includes=[]
excludes=[]
packages=[]
setup(
version = "0.0",
description = "No Description",
author = "Name",
name = "App name",
options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}},
executables = [exe]
)