mirror of
https://github.com/Furglitch/modorganizer2-linux-installer.git
synced 2026-04-23 16:47:59 -04:00
Currently, the resulting file will not work, but this allows us to see what adjustments need to be made to the script.
10 lines
262 B
Python
10 lines
262 B
Python
import sys
|
|
import os
|
|
|
|
if getattr(sys, "frozen", False):
|
|
base = getattr(sys, "_MEIPASS", None)
|
|
if base:
|
|
src_path = os.path.join(base, "src")
|
|
if os.path.isdir(src_path) and src_path not in sys.path:
|
|
sys.path.insert(0, src_path)
|