]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #16804: Fix 'python -S -m site' failure.
authorMeador Inge <meadori@gmail.com>
Sun, 14 Apr 2013 01:29:49 +0000 (20:29 -0500)
committerMeador Inge <meadori@gmail.com>
Sun, 14 Apr 2013 01:29:49 +0000 (20:29 -0500)
commit9a7a81195ce42efc92fac04c19a2fe9f0562ef51
tree06d534e2310a7b5430d22e0f8344d21770763e01
parent0bfd6acf03640f8910b8f9fa10cc7775a7c55449
Issue #16804: Fix 'python -S -m site' failure.

This commit fixes a bug in the 'site' module that was causing an exception
to incorrectly be thrown when running 'python -S -m site'.  The problem was
that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly
initialized.  The code has been changed to use 'getuserbase' and
'getusersitepackages' instead so that the initialization always happens.
Lib/site.py
Misc/NEWS