commit | 2581bdb86a1db29091e5a67ef022415f65909f0f | [log] [tgz] |
---|---|---|
author | Meador Inge <meadori@gmail.com> | Sat Apr 13 20:51:04 2013 -0500 |
committer | Meador Inge <meadori@gmail.com> | Sat Apr 13 20:51:04 2013 -0500 |
tree | 92d5dcdc7ec822380f8d32a0f56eea8d7515b3a8 | |
parent | d949126995a7ff63590285aa816da65d97a31403 [diff] | |
parent | 9a7a81195ce42efc92fac04c19a2fe9f0562ef51 [diff] |
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.