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

Doug Hellmann report at bugs.python.org
Sun Oct 31 14:18:43 CET 2010

New submission from Doug Hellmann <doug.hellmann at gmail.com>:

Running "python -m site" is supposed to print a report about the current import path and its components (like USER_BASE and USER_SITE).

This works under 2.6 and 3.1, but not 2.7.  No output is produced under 2.7 at all.  

When I add a print statement to the end of the module, I see that __name__ is set to "site" instead of "__main__", so the _script() function isn't being invoked at all.

components: Library (Lib)
messages: 120045
nosy: doughellmann
priority: normal
severity: normal
status: open
title: "python -m site" does not print path details
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list