Stan, 01 Apr 2015 04:46:
> Hi devs,
>
> Is there a good reason for having the shebang line in django-admin.py at
> #!/usr/bin/python
> "instead" of #!/usr/bin/env python ?
is there a good reason to use the latter?
"env python" is a terrible hack for systems that
are way behind with their "official" packages.
it creates a nightmare when multiple python
versions are installed.
when outside virtualenv, i prefer the first
version exactly for the same reason you
prefer the latter: so that the interpreter
used is deterministic -- the system one --
instead of who knows what that could be picked
up from the user's PATH...
it is the same reason why the current path ('.')
should be the last element of PATH: so that
a local executable named after an existing
system-wide program is not shadowing it, creating
potentially difficult to track down problems.
"explicit is better than implicit", right?
if you want to override the path to the interpreter,
put it on the command line. otherwise a simple
change in PATH could break the whole application.
-f
--
xerox never comes up with something original.