[Python-Dev] Running a module as a script (original) (raw)
Thomas Heller theller at python.net
Thu Sep 30 16:31:22 CEST 2004
- Previous message: [Python-Dev] Running a module as a script
- Next message: [Python-Dev] Running a module as a script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Aahz <aahz at pythoncraft.com> writes:
On Thu, Sep 30, 2004, Nick Coghlan wrote:
The allowed modules are those whose associated source file meet the normal rules for a command line script. I believe that means .py and .pyc files only (e.g. "python -m profile" works, but "python -m hotshot" does not). Not positive, but if you're allowing .pyc, you should probably allow .pyo if optimize mode is on.
Plus .pyw, on Windows.
Thomas
- Previous message: [Python-Dev] Running a module as a script
- Next message: [Python-Dev] Running a module as a script
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]