Fix embedded Python not sourcing from script path
This commit is contained in:
parent
da8261dd52
commit
d40a0dd6dc
3
run.py
3
run.py
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user