Martin v. Loewis wrote:
Gerhard Häring email@example.com writes:
This might sound clueless, but wouldn't it be a good idea to change that? So that site-packages comes before Lib/ in sys.path?
No, this is by design, to prevent people from overriding the standard library. Essentially, all module names in the standard library are reserved; this procedure enforces that (somewhat, you can always insert things in the beginning of sys.path).
Uhm, just for the record: all paths defined in PYTHONPATH are inserted before the std lib dirs in sys.path on startup, so the "restriction" is not really all that restrictive.