This commit is contained in:
2025-04-17 04:52:48 +08:00
commit 9985b73dc1
3708 changed files with 2387532 additions and 0 deletions

View File

@ -0,0 +1,27 @@
import sys
import os
import inspect
# Add SprinMagic path to PYTHON_PATH
script_name = inspect.getframeinfo(inspect.currentframe()).filename
script_path = os.path.dirname(os.path.abspath(script_name))
path_name = os.path.dirname(script_path)
if os.path.exists(path_name) and path_name not in sys.path:
sys.path.append(path_name)
# Import SpringMagic module
import springmagic
import springmagic.mkDevTools as dev
# Recompile SpringMagic module if modification has been made
# dev.refresh(springmagic)
# Launch SpringMagic
springmagic.main()
# Unload SpringMagic module
del(springmagic)
# Remove SprinMagic path from PYTHON_PATH
sys.path.remove(path_name)