-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (15 loc) · 695 Bytes
/
Copy pathsetup.py
File metadata and controls
19 lines (15 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from cx_Freeze import setup, Executable
import os
#There's no documentation on how to do this zip-include stuff, just posts by SO Gods
CONST_SC2READER_PATH = 'C:\Python33\Lib\site-packages\sc2reader\data\\'
CONST_ROOT = 'C:\Python33\Lib\site-packages\\'
includefiles = list()
for dirpath, dirnames, filenames in os.walk(CONST_SC2READER_PATH):
for filename in filenames:
includefiles.append([dirpath+'\\'+filename, os.path.relpath(dirpath+'\\'+filename,CONST_ROOT)])
print(includefiles[-1])
setup(
name = "vroMAD",
version = "0.1.2",
options = {'build_exe': {'zip_includes':includefiles}},
executables = [Executable("__main__.py", base = "WIN32GUI")])