Run pyc file without specifying python path ?

Aahz aahz at pythoncraft.com
Thu Jul 30 21:13:53 EDT 2009


In article <mailman.3949.1248951463.8015.python-list at python.org>,
Chris Rebert  <clp2 at rebertia.com> wrote:
>
>No, with the shebang line (and assuming execute permissions on the
>file), it would look like:
>
>./wrapper.py

There's no reason to name it ".py"; you can have a perfectly useful
"shell script" that just happens to list python on the shebang line
instead of the usual /bin/sh.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer



More information about the Python-list mailing list