Update run.py

make the program compatible with python embedded intepreter
pull/1169/head
bumprat 2025-05-03 13:33:36 +08:00 committed by GitHub
parent 532e7c05ee
commit 923baeadda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

5
run.py
View File

@ -1,6 +1,11 @@
#!/usr/bin/env python3
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__':
core.run()