[systemd-devel] [PATCH] *.py: don't hardcode /usr/bin/python
Koen Kooi
koen at dominion.thruhere.net
Mon Dec 3 02:11:06 PST 2012
Op 1 dec. 2012, om 05:04 heeft Ramkumar Ramachandra <artagnon at gmail.com> het volgende geschreven:
> Michael Biebl wrote:
>> 2012/11/30 Ramkumar Ramachandra <artagnon at gmail.com>:
>>> Execute python using "/usr/bin/env python" instead of hard-coding the
>>
>> I'm not really a fan of using /usr/bin/env, as you can pick up a
>> random python version depending on how your PATH is setup.
>> Besides, you need to spawn an additional binary.
>> I would assume that pretty much every distro ships the python
>> interpreter as /usr/bin/python.
>
> I don't follow your reasoning: it is idiomatic to use "/usr/bin/env
> $interpreter", because every distro does not necessarily ship it as
> /usr/bin/$interpreter.
Even better: 'env' is located in /bin on some distros :)
More information about the systemd-devel
mailing list