The "/usr/bin/env" command is used for many programs, not only python.
The "env" command checks the linux configuration where the default program has been installed in case of multiple versions like python2 or python3, but also java-8, java-10, java-11 and other multi-version installs. If there are multiple installs of for example python3 and the OS "knows" about it, it can be overridden by "sudo update-alternatives --config python3" to point to /usr/bin, /usr/local/bin or wherever you have installed (your own) version of python. It means that by using the "/usr/bin/env python3" (or /usr/bin/env javac") to use an "outside PATH" installation. So in the case of "/usr/local/bin/python3", the command "/usr/bin/env python3" can point, and therefore use, the /usr/local/bin/python3. Harry Op vr 29 nov. 2019 om 16:19 schreef T. Modes <[email protected]>: > Hi Bruno, > > Am Freitag, 29. November 2019 08:24:58 UTC+1 schrieb Bruno Postle: >> >> >> Yes the fedora policy on this is much more pedantic. The /usr/bin/env >> stuff has use-cases for people who need to use weird computer systems, but >> it can only cause problems for people who get Hugin from a Linux >> distribution. >> > > I didn't know this. So I let the /usr/bin/env approach. > A short search revealed that BSD like distros are using > /usr/local/bin/python3. > So we have > /usr/bin/python3 > /usr/bin/env python3 > /usr/local/bin/python3 > > All 3 one are used by different distros, but not a single common usage... > > Thomas > > -- > A list of frequently asked questions is available at: > http://wiki.panotools.org/Hugin_FAQ > --- > You received this message because you are subscribed to the Google Groups > "hugin and other free panoramic software" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/hugin-ptx/ca481fcd-99b1-4267-a8db-5a8307a7fd5c%40googlegroups.com > <https://groups.google.com/d/msgid/hugin-ptx/ca481fcd-99b1-4267-a8db-5a8307a7fd5c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/CAGARPputw1iusSrLXx6WpuWMwLmx7HSe4V8nu4egqPEC8TBq5g%40mail.gmail.com.
