14 Oct
2004
14 Oct
'04
1:06 p.m.
Barry Warsaw
On Thu, 2004-10-14 at 08:01, Nick Coghlan wrote:
That reminds me - the version of this that got checked in is restricted to top-level modules in order to keep things simple. I put a recipe up on the Python cookbook for those that wanted to be able to easily run scripts that live inside packages.
The recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307772
Why not add this to the stdlib? I'd call it pyrun.py.
... and call it automatically when the '-m' implementation detects a dotted name? Thomas