Most common #! format

Randall Hopper aa8vb at yahoo.com
Thu Mar 2 14:46:39 EST 2000


Chuck Esterbrook:
 |What's the most common #! format?
 |
 |#!python
 |#!/usr/local/bin/python
 |#!/usr/bin/env python
 |
 |or something else?

I don't think anyone really knows... (who has looked at all UNIX python
apps written anyway?)

FWIW, I tend to use the latter on UNIX.  python is /usr/bin/python or
$HOME/bin/python some places, and the latter handles that.  The second
command, OTOH, requires script-hacking by the installer or a wrapper
script.

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list