Files
GOD-CWAK/build/pyi_rth_godcwak.py
Dr Jones 05a32015db Add PyInstaller Windows release build system.
Frozen builds resolve paths correctly, stage portable onedir output, and zip releases for distribution.
2026-05-22 19:20:06 -07:00

13 lines
450 B
Python

"""
PyInstaller runtime hook — normalize frozen paths before application imports.
"""
import os
import sys
if getattr(sys, "frozen", False):
os.environ.setdefault("GODCWAK_FROZEN", "1")
# Ensure the exe directory is on PATH for any subprocess helpers.
exe_dir = os.path.dirname(sys.executable)
if exe_dir and exe_dir not in os.environ.get("PATH", ""):
os.environ["PATH"] = exe_dir + os.pathsep + os.environ.get("PATH", "")