@@ -33,8 +33,8 @@ def get_python_executable(path = None):
33
33
"""return the python executable"""
34
34
my_path = sys .executable if path == None else path # default = current one
35
35
my_path = my_path if osp .isdir (my_path ) else osp .dirname (my_path )
36
- exec_py = os .path .join (path , 'python.exe' )
37
- exec_pypy = os .path .join (path , 'pypy3.exe' ) # PyPy !
36
+ exec_py = os .path .join (my_path , 'python.exe' )
37
+ exec_pypy = os .path .join (my_path , 'pypy3.exe' ) # PyPy !
38
38
# PyPy >=7.3.6 3.8 aligns to python.exe and Lib\site-packages
39
39
#python_executable = exec_pypy if osp.isfile(exec_pypy) else exec_py
40
40
python_executable = exec_py if osp .isfile (exec_py ) else exec_pypy
@@ -44,8 +44,8 @@ def get_site_packages_path(path = None):
44
44
"""return the python site-packages"""
45
45
my_path = sys .executable if path == None else path # default = current one
46
46
my_path = my_path if osp .isdir (my_path ) else osp .dirname (my_path )
47
- site_py = os .path .join (path , 'Lib' , 'site-packages' )
48
- site_pypy = os .path .join (path , 'site-packages' ) # PyPy !!
47
+ site_py = os .path .join (my_path , 'Lib' , 'site-packages' )
48
+ site_pypy = os .path .join (my_path , 'site-packages' ) # PyPy !!
49
49
site_packages_path = site_pypy if osp .isfile (site_pypy ) else site_py
50
50
return site_packages_path
51
51
0 commit comments