[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

Tarek Ziadé report at bugs.python.org
Tue May 3 18:08:10 CEST 2011


Tarek Ziadé <ziade.tarek at gmail.com> added the comment:

Paths that are starting with ~ should be extended with the right value with the user base. If the user base cannot be calculated, paths starting with ~ should not exist or be used at all in this context.

Maybe we need to completely reset them to None like userbase. We need to list all use cases within the stdlib and come up with a general rule.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10496>
_______________________________________


More information about the Python-bugs-list mailing list