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. -- http://mail.python.org/mailman/listinfo/python-list