[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #!/usr/bin/python2.3 vs #!/usr/bin/env python2.3



Quoting Jérôme Marant <jmarant@free.fr>:

> Quoting John Goerzen <jgoerzen@complete.org>:
> 
> > Hello,
> > 
> > Many Python programs use constructs like #!/usr/bin/env python2.3 to load
> > themselves.  Many others use #!/usr/bin/python2.3.  On most Debian
> systems,
> > these are the same.
> > 
> > The submitter in #189473 claims that #!/usr/bin/env python2.3 is wrong
> > because he has his own python2.3 on the path prior to the system's, and it
> > doesn't necessarily have requisite libraries for the programs being run.
> 
> #!/usr/bin/env python2.3 helps programs running everywhere, i.e. they
> will work with people that installed python in /usr/local/bin for
> instance.

Hmm, after reading everyone's arguments, it seems wiser to use
#!/usr/bin/python2.3 in order to avoid mixing with local python
installs.

-- 
Jérôme Marant



Reply to: