From 923baeadda8c0ae899b7ec4038e1ed633432445d Mon Sep 17 00:00:00 2001 From: bumprat Date: Sat, 3 May 2025 13:33:36 +0800 Subject: [PATCH] Update run.py make the program compatible with python embedded intepreter --- run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run.py b/run.py index 31bc6da..7ac7bac 100644 --- a/run.py +++ b/run.py @@ -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()