This commit is contained in:
eric
2025-09-13 08:13:47 +08:00
parent 2f1b57eb2c
commit 9c09960431
90 changed files with 8597 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()