YantaiVisionX/ControlPanel.spec
sladro 204678026e fix: resolve Tcl/Tk init.tcl not found error when running from explorer
- 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>
2025-12-02 11:01:36 +08:00

48 lines
1022 B
Python

# -*- mode: python ; coding: utf-8 -*-
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=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
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',
)