Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from cx_Freeze import setup, Executable
- includefiles = ["assets/"] ##includes everyting in the assets folder
- packages = ["tkinter", "traceback", "PIL"] #inclides these python modules
- excludes = [] #excludes specific custom modules
- includes = ["tkutils"] includes specific custom modules
- base = None
- if sys.platform == 'win32':
- base = 'Win32GUI'
- executables = [
- Executable(
- script='main.py', #your script name
- base='Win32GUI', #for windows
- )
- ]
- setup(name='main-setup', #output file name (not needed if using inno,
- version='0.0.0.1', #the version of the build
- description='Test Version of main', #some description
- options = {'build_exe': {'includes':includes,'excludes':excludes,'packages':packages,'include_files':includefiles}},
- executables=executables
- )
- #
- # To build file into exe
- # python .\myfile.py build
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement