[Tutor] which file runs

Chris Hengge pyro9219 at gmail.com
Tue Dec 5 20:34:46 CET 2006

I have a script that makes my python scripts into .pyc files and I can run
those without a .py in the directory or anywhere else on the system for that
matter. No clever tricks needed.

On 12/1/06, Christopher Arndt <chris.arndt at web.de> wrote:
> Addendum: these rules only apply to Python *modules*. AFAIK, when you call
> a
> Python file as a script, no matching .pyc/.pyo file is used or generated.
> There are some clever tricks to run a .pyc file as a script. I think it is
> described in the Python CGI FAQ.
> Chris
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061205/4a474798/attachment.html 

More information about the Tutor mailing list