compile shebang into pyc file

Joerg Schuster joerg.schuster at gmail.com
Tue Apr 26 11:19:43 EDT 2005


Hello,

is there a way to compile a python file foo.py to foo.pyc (or foo.pyo)
such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python
foo.pyc') on the command line?

Jörg Schuster




More information about the Python-list mailing list