[arch-general] simple trick to make dealing with python 2/3 scripts easier

Ben Booth benwbooth at gmail.com
Fri Aug 17 18:42:34 EDT 2012


Damjan wrote:

>> The only problem with
>> this approach is that /usr/bin/python is owned by the python package, so
>> if you upgrade the python package it might create problems. Any one know
>> of some way to work around this problem?
> 
> Just put your script in /usr/local/bin

But then some scripts use #!/usr/bin/python. Putting it in /usr/local/bin 
would only work if the script uses #!/usr/local/bin/python or #!/usr/bin/env 
python.




More information about the arch-general mailing list