's'
This commit is contained in:
14
__init__.py
Normal file
14
__init__.py
Normal 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()
|
||||
Reference in New Issue
Block a user