[katello-devel] Why #!/usr/bin/env ?
Miroslav Suchy
msuchy at redhat.com
Mon Jul 23 21:11:40 UTC 2012
On 23.7.2012 23:05, Eric Sammons wrote:
>>> among developers. Then python can live in ~/myenv/bin/python as
>>> > > well as
>>> > > many dependencies under ~/myenv/lib/python2.X/site-packages which
>>> > > /usr/bin/python will never find, or worse, different versions. I
>>> > > imagine
>>> > > something similar may exist in the ruby world.
And that ~/myenv/bin/python is python 2.4, 2.6, or 3.0? All of them
behave *very* differently.
> Again wrt virtualenv, here is an example:
>
> $ virtualenv testme
> $ cd testme
> $ source bin/activate
> $ which python
> ~/testme/bin/python
>
> Note, if you were using /usr/bin/python you would_not_ be testing the python binary in "testme".
That can be ok for quick'n'dirty code, where you want fast alternation
without too much work. But who would do such thing in production?
Mirek
More information about the katello-devel
mailing list