Sfoglia il codice sorgente

backport https://trac.osgeo.org/grass/changeset/65526 (pygrass to grass.pygrass)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@65651 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 9 anni fa
parent
commit
6a04df2839

+ 1 - 1
lib/python/docs/src/pygrass_modules.rst

@@ -5,7 +5,7 @@ In "modules", GRASS GIS modules are represented as objects. These objects
 are generated based on the XML module description that is used also for
 are generated based on the XML module description that is used also for
 the generation of the graphical user interface (GUI). ::
 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_aspect = Module("r.slope.aspect", elevation='elevation',
     ...                        slope='slp',  aspect='asp',
     ...                        slope='slp',  aspect='asp',
     ...                        format='percent', overwrite=True)
     ...                        format='percent', overwrite=True)

+ 1 - 1
lib/python/docs/src/pygrass_vector.rst

@@ -309,7 +309,7 @@ Or can list only the areas containing isles: ::
 
 
 Of course is still possible work only with a specific area, with: ::
 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(v_id=1859, c_mapinfo=municip.c_mapinfo)
     >>> area.area()
     >>> area.area()
     39486.05401495844
     39486.05401495844

+ 1 - 1
lib/python/pygrass/tests/benchmark.py

@@ -21,7 +21,7 @@ sys.path.append("%s/.."%(os.getcwd()))
 import grass.lib.gis as libgis
 import grass.lib.gis as libgis
 import grass.lib.raster as libraster
 import grass.lib.raster as libraster
 import grass.script as core
 import grass.script as core
-import pygrass
+import grass.pygrass
 import ctypes
 import ctypes