Chris Hengge wrote:
> 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.

You're right. Probably this trick was only needed in (very) old versions 
of Python. Also works with .pyo files:

python -OO -c "import myfile"
python myfile.pyo

Chris
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to