Mike,

I'm using Gentoo Linux, definitely not one of supported.


Nevertheless,

#!/usr/bin/env python

is a very common because it's the output of standard python wrapper
generation utility.

So, I think that ask python to print path to it self

hpython=`sed -n -e '1 s,^[^/]*/,/,p' ${whichhg}`
python=`$hpython -c "import sys; print(sys.executable)"`

is more reliable and require less code than attempt to guess right
interpreter parsing first line of hg wrapper and output of python -V than.

-Dmitry



On 2013-09-11 23:42, Mike Duigou wrote:
> Sorry I haven't had a chance to look at this. What Linux did you encounter 
> this on? Did it recently change?
> 
> Mike
> On Sep 11 2013, at 06:48 , Dmitry Samersoff wrote:
> 
>> Mike,
>>
>> hgforest still doesn't detect python because on my linux laptop hg
>> headline is
>>
>> #!/usr/bin/env python
>>
>> I'd attached the patch I use (regenerated against latest tl with 8024200
>> changes)
>>
>> -Dmitry
>>
>> On 2013-09-03 23:43, Mike Duigou wrote:
>>> Hello all;
>>>
>>> This is a very small change to trim optional whitespace off of the 
>>> interpreter directive which may appear in the hg wrapper script. The 
>>> whitespace is legal per https://en.wikipedia.org/wiki/Shebang_%28Unix%29 
>>> and is now included in some distributions of mercurial (Ubuntu 13.04).
>>>
>>> http://cr.openjdk.java.net/~mduigou/JDK-8024200/0/webrev/
>>>
>>> Mike
>>>
>>>
>>
>>
>> -- 
>> Dmitry Samersoff
>> Oracle Java development team, Saint Petersburg, Russia
>> * I would love to change the world, but they won't give me the sources.
>> <common.patch>
> 


-- 
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.

Reply via email to