[Baypiggies] Is there an equivalent to perl -S for python?

Jeremy Fishman jeremy.r.fishman at gmail.com
Mon Jan 25 22:22:52 CET 2010

'python -m xyz' will search for xyz.py in the path and run it as __main__.

  - Jeremy

On Jan 25, 2010 1:15 PM, "William Deegan" <bdbaddog at gmail.com> wrote:


perl -S xyz.pl   will find the xyz.pl in the PATH and run it.
Is there an equivalent flag for python?
Or do I need to do:
x=`which xyz.py`
python $x


Baypiggies mailing list
Baypiggies at python.org
To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20100125/dd430770/attachment.htm>

More information about the Baypiggies mailing list