mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Embedded CPython builds sys.path from PYTHONHOME only. Unlike the python CLI it does not prepend the working directory, and unlike Windows' getpathp.c it does not add the executable's directory either, so on POSIX "from scripts import ..." (the asset-side scripts package used by texture and screen renderers) fails to import. Insert "." at the front of sys.path after interpreter init, matching how the engine resolves every other asset (relative to CWD). Idempotent and harmless on Windows.