[Python-Dev] Running a module as a script (original) (raw)
Aahz aahz at pythoncraft.com
Thu Sep 30 15:57:18 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 ]
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.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." --Ralph Waldo Emerson
- 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 ]