- Move _configure_tk_runtime() before tkinter import to set TCL_LIBRARY early - Add PyInstaller 6.x _internal directory support for Tcl/Tk paths - Switch ControlPanel.spec to onedir mode for reliable Tcl/Tk bundling Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
# Debug version with onedir mode to inspect file structure
|
|
|
|
a = Analysis(
|
|
['D:\\App\\python\\YantaiVisionX\\src\\ui\\control_panel.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[('C:\\Users\\sladr\\anaconda3\\envs\\YantaiVisionX\\Library\\lib\\tcl8.6', 'tcl/tcl8.6'), ('C:\\Users\\sladr\\anaconda3\\envs\\YantaiVisionX\\Library\\lib\\tk8.6', 'tcl/tk8.6')],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
[],
|
|
exclude_binaries=True,
|
|
name='ControlPanel_debug',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=True, # Enable console to see errors
|
|
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='ControlPanel_debug',
|
|
)
|