[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)
STINNER Victor
report at bugs.python.org
Thu May 5 14:49:48 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> If the user base cannot be calculated, paths
> starting with ~ should not exist or be used at all in this context.
It's not "~" but "{userbase}" substitution variable.
Here is a new patch implementing this idea: don't create the variables using the user directory if the user doesn't exist (if we cannot get the user directory). I didn't test distutils, I just try to start Python (it does work using bug.c).
----------
Added file: http://bugs.python.org/file21896/nonexistent_user.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10496>
_______________________________________
More information about the Python-bugs-list
mailing list