50 lines
946 B
Python
50 lines
946 B
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
import PyInstaller.config
|
|
#PyInstaller.config.CONF['distpath'] = "./my_app_directory"
|
|
|
|
a = Analysis(
|
|
['msend_for_bhom.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
[],
|
|
exclude_binaries=True,
|
|
name='msend_for_bhom',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=True,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
name='msend_for_bhom',
|
|
)
|
|
|
|
import shutil
|
|
print(coll.name)
|
|
shutil.copyfile('config.ini', '{0}/config.ini'.format(coll.name)) |