[GRASS-SVN] r65526 - in grass/trunk/lib/python: docs/src pygrass/tests

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 29 09:02:55 PDT 2015


Author: wenzeslaus
Date: 2015-06-29 09:02:55 -0700 (Mon, 29 Jun 2015)
New Revision: 65526

Modified:
   grass/trunk/lib/python/docs/src/pygrass_modules.rst
   grass/trunk/lib/python/docs/src/pygrass_vector.rst
   grass/trunk/lib/python/pygrass/tests/benchmark.py
Log:
pygrass: fix imports in doc to grass.pygrass

Modified: grass/trunk/lib/python/docs/src/pygrass_modules.rst
===================================================================
--- grass/trunk/lib/python/docs/src/pygrass_modules.rst	2015-06-28 01:12:25 UTC (rev 65525)
+++ grass/trunk/lib/python/docs/src/pygrass_modules.rst	2015-06-29 16:02:55 UTC (rev 65526)
@@ -5,7 +5,7 @@
 are generated based on the XML module description that is used also for
 the generation of the graphical user interface (GUI). ::
 
-    >>> from pygrass.modules import Module
+    >>> from grass.pygrass.modules import Module
     >>> slope_aspect = Module("r.slope.aspect", elevation='elevation',
     ...                        slope='slp',  aspect='asp',
     ...                        format='percent', overwrite=True)

Modified: grass/trunk/lib/python/docs/src/pygrass_vector.rst
===================================================================
--- grass/trunk/lib/python/docs/src/pygrass_vector.rst	2015-06-28 01:12:25 UTC (rev 65525)
+++ grass/trunk/lib/python/docs/src/pygrass_vector.rst	2015-06-29 16:02:55 UTC (rev 65526)
@@ -309,7 +309,7 @@
 
 Of course is still possible work only with a specific area, with: ::
 
-    >>> from pygrass.vector.geometry import Area
+    >>> from grass.pygrass.vector.geometry import Area
     >>> area = Area(v_id=1859, c_mapinfo=municip.c_mapinfo)
     >>> area.area()
     39486.05401495844

Modified: grass/trunk/lib/python/pygrass/tests/benchmark.py
===================================================================
--- grass/trunk/lib/python/pygrass/tests/benchmark.py	2015-06-28 01:12:25 UTC (rev 65525)
+++ grass/trunk/lib/python/pygrass/tests/benchmark.py	2015-06-29 16:02:55 UTC (rev 65526)
@@ -21,7 +21,7 @@
 import grass.lib.gis as libgis
 import grass.lib.raster as libraster
 import grass.script as core
-import pygrass
+import grass.pygrass
 import ctypes
 
 



More information about the grass-commit mailing list