[issue11320] Can't call Py_SetPath() on pointer returned by Py_GetPath()
Debao Zhang
report at bugs.python.org
Sun Sep 18 16:58:32 CEST 2011
Debao Zhang <dbzhang800 at gmail.com> added the comment:
Hello everyone,
I have found the reason for the problem.
>From the manual http://docs.python.org/py3k/c-api/init.html#Py_SetPath ,
we can see that:
After we call Py_SetPath,both sys.prefix and sys.exec_prefix will be empty.
However, sys.prefix will be used in the sysconfig.py to generate the makefile' s name, and the empty sys.prefix will cause the wrong path: lib/python3.2/config-3.2m/Makefile
sysconfig.py imported by site.py, and site.py used in the Py_InitializeEx.
So ...
----------
nosy: +dbzhang800
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11320>
_______________________________________
More information about the Python-bugs-list
mailing list