[GRASS-SVN] r38464 - grass/trunk/swig/python/examples
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 18 02:55:22 EDT 2009
Author: neteler
Date: 2009-07-18 02:55:22 -0400 (Sat, 18 Jul 2009)
New Revision: 38464
Modified:
grass/trunk/swig/python/examples/m.distance.py
grass/trunk/swig/python/examples/rasteraccess.py
grass/trunk/swig/python/examples/vectoraccess.py
Log:
point to installed dir
Modified: grass/trunk/swig/python/examples/m.distance.py
===================================================================
--- grass/trunk/swig/python/examples/m.distance.py 2009-07-18 06:52:41 UTC (rev 38463)
+++ grass/trunk/swig/python/examples/m.distance.py 2009-07-18 06:55:22 UTC (rev 38464)
@@ -54,11 +54,10 @@
#### add your code here ####
# run this before starting python to append module search path:
- # export PYTHONPATH=/usr/src/grass70/swig/python
+ # export PYTHONPATH=$PYTHONPATH:/usr/local/grass-7.0.svn/etc/python
# check with "import sys; sys.path"
# or:
- sys.path.append("/usr/src/grass70/swig/python")
- # FIXME: install the g7lib.py bindings in $GISBASE/lib/ ?
+ sys.path.append("/usr/local/grass-7.0.svn/etc/python")
from grass.lib import grass as g7lib
# for passing pointers
Modified: grass/trunk/swig/python/examples/rasteraccess.py
===================================================================
--- grass/trunk/swig/python/examples/rasteraccess.py 2009-07-18 06:52:41 UTC (rev 38463)
+++ grass/trunk/swig/python/examples/rasteraccess.py 2009-07-18 06:55:22 UTC (rev 38464)
@@ -5,14 +5,14 @@
Run this before starting python to append module search path:
@code
-export PYTHONPATH=$PYTHONPATH:/usr/local/grass-7.0.svn/etc/python/grass/lib
+export PYTHONPATH=$PYTHONPATH:/usr/local/grass-7.0.svn/etc/python/
@endcode
Check with "import sys; sys.path"
or:
@code
-sys.path.append("/usr/local/grass-7.0.svn/etc/python/grass/lib")
+sys.path.append("/usr/local/grass-7.0.svn/etc/python")
@endcode
"""
Modified: grass/trunk/swig/python/examples/vectoraccess.py
===================================================================
--- grass/trunk/swig/python/examples/vectoraccess.py 2009-07-18 06:52:41 UTC (rev 38463)
+++ grass/trunk/swig/python/examples/vectoraccess.py 2009-07-18 06:55:22 UTC (rev 38464)
@@ -2,11 +2,10 @@
# run within GRASS Spearfish session
# run this before starting python to append module search path:
-# export PYTHONPATH=/usr/src/grass70/swig/python
+# export PYTHONPATH=$PYTHONPATH:/usr/local/grass-7.0.svn/etc/python
# check with "import sys; sys.path"
# or:
-# sys.path.append("/usr/src/grass70/swig/python")
-# FIXME: install the grass bindings in $GISBASE/lib/ ?
+# sys.path.append("/usr/local/grass-7.0.svn/etc/python")
import os, sys
from grass.lib import grass
More information about the grass-commit
mailing list