compile shebang into pyc file

johnlichtenstein at gmail.com johnlichtenstein at gmail.com
Tue Apr 26 21:15:51 EDT 2005


Is there some reason why you want to run the .pyc file, rather than the
.py file? If you start the script with

#! /usr/bin/env python

Then if the file has the execution permission set, typing the file name
(foo.py) will make the script call up the Python interpreter on its
own.




More information about the Python-list mailing list