[GRASS-dev] PYTHONPATH question

Michael Barton michael.barton at asu.edu
Tue Jul 29 12:59:59 EDT 2008



On Jul 29, 2008, at 9:54 AM, Michael Barton wrote:

>
> On Jul 29, 2008, at 9:37 AM, William Kyngesburye wrote:
>
>> [coming out of lurking on this one]
>>
>> It looks like, when run from a python script in GRASS, you're  
>> getting the system python.
>>
>> Yet, when you run python itself from GRASS, you get the python.org  
>> Python.  What is the shebang line (first line) in your python  
>> script, it may be pointing to the system python?
>>
>>
>> On Jul 27, 2008, at 7:40 PM, Michael Barton wrote:
>>
>>>> Is "python" the actual executable, or is it a front-end script?
>>>
>>> /usr/bin/python and /usr/local/bin/python are symlinks to /Library/ 
>>> Frameworks/.../python2.5, which is an executable. I've checked and  
>>> this is the only "python" in my path
>>
>> /usr/bin/python should be a symlink to the SYSTEM python.
>>
>
>
> Weird. When I do 'show original' for /usr/bin/python, it shows as a  
> symlink to
>
> /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
>
> ...which is a symlink to /System/Library/Frameworks/Python.framework/ 
> Versions/2.5/bin/python2.5
>
>

Note that when I do a 'show original' for both symlinks /usr/bin/ 
python and /usr/local/bin/python, they both go to the same place:

/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

But one calls the System 2.5.1 and the other one calls the MacPython  
2.5.2

Michael



More information about the grass-dev mailing list