Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys, os
- from cx_Freeze import setup, Executable
- python_path = "C:/Python37-32/"
- os.environ['TCL_LIBRARY'] = python_path+'tcl/tcl8.6'
- os.environ['TK_LIBRARY'] = python_path+'tcl/tk8.6'
- includefiles = ["credentials.json", "assets/", "icon.ico", python_path+"DLLs/tcl86t.dll", python_path+"DLLs/tk86t.dll"]
- packages = ["os", "sys", "tkinter", "urllib", "httplib2", "traceback", "threading", "hashlib", "binascii", "base64", "string", "webbrowser", "time", "subprocess", "datetime", "win32api", "win32con"]
- excludes = []
- includes = ["babel", "crypto", "socks", "google", "pymysql", "pandas", "tkcalendar", "matplotlib", "numpy"]
- base = None
- if sys.platform == 'win32':
- base = 'Win32GUI'
- executables = [
- Executable(
- script='caseload.py',
- base='Win32GUI',
- icon="icon.ico"
- )
- ]
- setup(name='Paitent System',
- version='1.0.0.45',
- description='Patient System.',
- options = {'build_exe': {'includes':includes,'excludes':excludes,'packages':packages,'include_files':includefiles}},
- executables=executables
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement