-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecutor.py
More file actions
31 lines (29 loc) · 1017 Bytes
/
Copy pathexecutor.py
File metadata and controls
31 lines (29 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
from cx_Freeze import setup, Executable
import sys
from interface import main
def build():
os.environ['TCL_LIBRARY'] = r'C:\Users\gidek\Anaconda3\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\gidek\Anaconda3\tcl\tk8.6'
buildOptions = dict(
packages = ['tensorflow', 'keras', 'os', 'numpy', 'PIL', 'math',
'preprocessor.py', 'predictor.py'],
include_files= ['icon_32.ico'],
excludes = ['matplotlib', 'PyQt4.QtSql', 'PyQt5',
'PyQt4.QtNetwork', 'PyQt4.QtScript', 'sqlalchemy',
'scipy.spatial.cKDTree', 'pandas', 'sqlite3']
)
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
exe = [Executable('interface.py', base=base, icon='icon_32.ico')]
setup(
name='MalCatcher',
version='0.0.1',
options=dict(build_exe=buildOptions),
executables=exe
)
if len(sys.argv) == 2:
if sys.argv[1] == 'build':
build()
main()