Re: simple trick to make dealing with python 2/3 scripts easier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ben Booth wrote:

> 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.

Maybe I'll submit a feature request to the python package maintainer to see 
if they think it's a good idea.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux