Xavier de Gaye added the comment:

In the subprocess test named test_executable_without_cwd and when the test is 
run on the installed Python, argv[0] is not the python executable and 
calculate_path() in Modules/getpath.c, as a last resort, searches the 
directories pointed to by the preprocessor variables PREFIX and EXEC_PREFIX 
defined in the Makefile. So this test indeed would have failed with the 
(rejected) proposition made in issue 1676135 to substitute the prefix '/' for 
'' in the configure script.  But the test would succeed when the substitution 
replaces '/' with '/./' as proposed here (after Python has effectively been 
manually installed on '/' of course).

Actually using '/.' instead of '/./' is better since the configure script will 
remove the trailing slash anyway. In both cases the value of prefix in the 
sysconfig module is '/.'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31114>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to