Michael Barton wrote: > >> Init.sh is not updating PYTHONPATH on my Mac for some reason. I've > >> looked at the code and it seems fine. I DO have a PYTHONPATH. So I'm > >> not sure why it is not updating it. If I change it manually, by > >> simply > >> pasting your code (export PYTHONPATH="$GISBASE/etc/python: > >> $PYTHONPATH") into the GRASS prompt, PYTHONPATH IS modified > >> appropriately and r_in_aster.py works fine with the new grass.py > >> library. > > > > I suspect that /etc/profile resets PYTHONPATH. Init.sh creates a > > .bashrc script in the mapset directory (which, at the point that the > > session shell is started, is $HOME), and that script sources > > /etc/profile. > > > > That's it. PYTHONPATH is set in my .profile.
~/.profile is only read by login shells. ~/.alias is sourced if it exists, as well as ~/.grass.bashrc. -- Glynn Clements <[EMAIL PROTECTED]> _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
