File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 28
28
OTHER DEALINGS IN THE SOFTWARE.
29
29
"""
30
30
31
- __version__ = '4.4.20210812 '
31
+ __version__ = '4.5.20210912 '
32
32
__license__ = __doc__
33
33
__project_url__ = 'http://winpython.github.io/'
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ def get_python_executable(path = None):
35
35
my_path = my_path if osp .isdir (my_path ) else osp .dirname (my_path )
36
36
exec_py = os .path .join (path , 'python.exe' )
37
37
exec_pypy = os .path .join (path , 'pypy3.exe' ) # PyPy !
38
- python_executable = exec_pypy if osp .isfile (exec_pypy ) else exec_py
38
+ # PyPy >=7.3.6 3.8 aligns to python.exe and Lib\site-packages
39
+ #python_executable = exec_pypy if osp.isfile(exec_pypy) else exec_py
40
+ python_executable = exec_py if osp .isfile (exec_py ) else exec_pypy
39
41
return python_executable
40
42
41
43
def get_site_packages_path (path = None ):
@@ -368,6 +370,8 @@ def get_pandoc_version(path):
368
370
def python_query (cmd , path ):
369
371
"""Execute Python command using the Python interpreter located in *path*"""
370
372
the_exe = get_python_executable (path )
373
+ # debug2021-09-12
374
+ print ('%s -c "%s"' % (the_exe , cmd ), ' * ' , path )
371
375
return exec_shell_cmd ('%s -c "%s"' % (the_exe , cmd ), path ).splitlines ()[0 ]
372
376
373
377
def python_execmodule (cmd , path ):
You can’t perform that action at this time.
0 commit comments