[GRASS-SVN] r65651 - in grass/branches/releasebranch_7_0/lib/python: docs/src pygrass/tests

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 19 12:00:58 PDT 2015


Author: wenzeslaus
Date: 2015-07-19 12:00:58 -0700 (Sun, 19 Jul 2015)
New Revision: 65651

Modified:
   grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst
   grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_vector.rst
   grass/branches/releasebranch_7_0/lib/python/pygrass/tests/benchmark.py
Log:
backport r65526 (pygrass to grass.pygrass)

Modified: grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst	2015-07-19 18:47:27 UTC (rev 65650)
+++ grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_modules.rst	2015-07-19 19:00:58 UTC (rev 65651)
@@ -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/branches/releasebranch_7_0/lib/python/docs/src/pygrass_vector.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_vector.rst	2015-07-19 18:47:27 UTC (rev 65650)
+++ grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_vector.rst	2015-07-19 19:00:58 UTC (rev 65651)
@@ -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/branches/releasebranch_7_0/lib/python/pygrass/tests/benchmark.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/tests/benchmark.py	2015-07-19 18:47:27 UTC (rev 65650)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/tests/benchmark.py	2015-07-19 19:00:58 UTC (rev 65651)
@@ -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