@@ -33,8 +33,8 @@ def get_python_executable(path = None):
3333 """return the python executable"""
3434 my_path = sys .executable if path == None else path # default = current one
3535 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 !
3838 # PyPy >=7.3.6 3.8 aligns to python.exe and Lib\site-packages
3939 #python_executable = exec_pypy if osp.isfile(exec_pypy) else exec_py
4040 python_executable = exec_py if osp .isfile (exec_py ) else exec_pypy
@@ -44,8 +44,8 @@ def get_site_packages_path(path = None):
4444 """return the python site-packages"""
4545 my_path = sys .executable if path == None else path # default = current one
4646 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 !!
4949 site_packages_path = site_pypy if osp .isfile (site_pypy ) else site_py
5050 return site_packages_path
5151
0 commit comments