On Thu, Jun 25, 2015 at 2:58 AM, Andrea Peri <[email protected]> wrote:

>
> inside grass:
>
> python -c "import grass.script as grass"
> (no error)
>
> python -c "import grass"
> (no error)
>

I don't understand why it should be different when called from script.


> python -c "import sys; print(sys.path)"
> ['',
> '/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg',
> '/usr/local/grass-7.0.0/etc/python',
> '/usr/local/grass-7.0.0/gui/wxpython', '/usr/lib/python2.7',
> '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk',
> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages',
> '/usr/lib/python2.7/dist-packages/PIL',
> '/usr/lib/pymodules/python2.7',
> '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']


I also don't see any problem. I is possible that `python` is something else
then `/usr/bin/evn/python`?

/usr/bin/env python -c "import sys; print(sys.path)"
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to