[issue10263] "python -m site" does not print path details

Doug Hellmann report at bugs.python.org
Mon Nov 1 17:53:20 CET 2010

Doug Hellmann <doug.hellmann at gmail.com> added the comment:

Adding a print to the site.py in Distribute's egg shows it is being run when I use 'python -m site'.  However, when I run 'python -c "import site; print site.__file__"' I get the version from the stdlib, as expected.

I guess the module finding mechanism for -m is different from the import code?


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list