This commit is contained in:
eric
2025-09-18 22:41:14 +08:00
parent bd64b15e2f
commit 49ce6660e5
40 changed files with 11210 additions and 0 deletions

14
__init__.py Normal file
View File

@@ -0,0 +1,14 @@
import os
import sys
from pathlib import Path
from initializer import check_node
current_file_path = Path(__file__).resolve()
current_dir = current_file_path.parent
JS_SCRIPT_PATH = current_dir / 'javascript'
execute_dir = os.path.split(os.path.realpath(sys.argv[0]))[0]
node_execute_dir = Path(execute_dir) / 'node'
current_env_path = os.environ.get('PATH')
os.environ['PATH'] = str(node_execute_dir) + os.pathsep + current_env_path
check_node()