Install script under a different name

Floris Bruynooghe floris.bruynooghe at gmail.com
Sat Dec 5 04:52:40 EST 2009


On Dec 5, 1:52 am, Lie Ryan <lie.1... at gmail.com> wrote:
> on linux/unix, you need to add the proper #! line to the top of any
> executable scripts and of course set the executable bit permission
> (chmod +x scriptname). In linux/unix there is no need to have the .py
> extension for a file to be recognized as python script (i.e. just remove
> it).

The #! line will even get replaced by the interpreter used during
installation, so you can safely write "#!/usr/bin/env python" in your
development copy and get "#!/usr/bin/python" when users install it.



More information about the Python-list mailing list