Fix embedded Python not sourcing from script path

This commit is contained in:
Fierelier 2024-02-06 05:26:18 +01:00
parent da8261dd52
commit d40a0dd6dc

3
run.py
View File

@ -37,6 +37,7 @@ if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
else:
s = os.path.realpath(__file__)
sp = pUp(s)
sys.path = [sp] + sys.path
# script start
version = (0,0,0,"alpha")
@ -252,4 +253,4 @@ def main():
opusnt.target["index"] += 1
if __name__ == "__main__":
main()
main()