Is "#!/usr/bin/env python" the better shebang line ?

Ned Deily nad at acm.org
Sun Sep 6 18:12:12 EDT 2009


In article <4aa3bfdf$0$282$14726298 at news.sunsite.dk>,
 Timothy Madden <terminatorul at gmail.com> wrote:
> My questions is if I should use
>    #!/usr/bin/env python
> as the shebang line in a portable and open python script and if it does 
> help with portability and usage.

This question came up recently on stackoverflow (alas, will result in 
urloverflow):

http://stackoverflow.com/questions/1352922/why-is-usr-bin-env-python-supp
osedly-more-correct-than-just-usr-bin-pyth/1352938#1352938

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list