<p>&#39;python -m xyz&#39; will search for xyz.py in the path and run it as __main__.</p>
<p>  - Jeremy<br>
</p>
<p><blockquote type="cite">On Jan 25, 2010 1:15 PM, &quot;William Deegan&quot; &lt;<a href="mailto:bdbaddog@gmail.com">bdbaddog@gmail.com</a>&gt; wrote:<br><br>Greetings,<br><br>perl -S <a href="http://xyz.pl" target="_blank">xyz.pl</a>   will find the <a href="http://xyz.pl" target="_blank">xyz.pl</a> in the PATH and run it.<br>
Is there an equivalent flag for python?<br>Or do I need to do:<br>x=`which xyz.py`<br>
python $x<br><br>Thanks,<br>Bill<br>
<br>_______________________________________________<br>
Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
To change your subscription options or unsubscribe:<br>
<a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br></blockquote></p>