Update run.py
make the program compatible with python embedded intepreterpull/1169/head
parent
532e7c05ee
commit
923baeadda
5
run.py
5
run.py
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from modules import core
|
from modules import core
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
|
# python embedded support: Ensure the script's folder is in sys.path
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
core.run()
|
core.run()
|
||||||
|
|
Loading…
Reference in New Issue