[GRASS-SVN] r45892 - in grass/trunk: doc/python gui/wxpython/gui_modules lib/python/ctypes

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 10 16:36:54 EDT 2011


Author: martinl
Date: 2011-04-10 13:36:54 -0700 (Sun, 10 Apr 2011)
New Revision: 45892

Modified:
   grass/trunk/doc/python/m.distance.py
   grass/trunk/doc/python/raster_example_ctypes.py
   grass/trunk/doc/python/vector_example_ctypes.py
   grass/trunk/gui/wxpython/gui_modules/wxnviz.py
   grass/trunk/gui/wxpython/gui_modules/wxvdigit.py
   grass/trunk/gui/wxpython/gui_modules/wxvdriver.py
   grass/trunk/lib/python/ctypes/Makefile
   grass/trunk/lib/python/ctypes/__init__.py
Log:
ctypes: grass module renamed to gis (follow library naming conventions)


Modified: grass/trunk/doc/python/m.distance.py
===================================================================
--- grass/trunk/doc/python/m.distance.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/doc/python/m.distance.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -63,7 +63,7 @@
     #   check with "import sys; sys.path"
     # or:
     sys.path.append("/usr/local/grass-7.0.svn/etc/python")
-    from grass.lib import grass as g7lib
+    from grass.lib import gis as g7lib
  
     # for passing pointers
     import Numeric

Modified: grass/trunk/doc/python/raster_example_ctypes.py
===================================================================
--- grass/trunk/doc/python/raster_example_ctypes.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/doc/python/raster_example_ctypes.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -18,7 +18,7 @@
 import os
 import sys
 
-from grass.lib.grass  import *
+from grass.lib.gis    import *
 from grass.lib.raster import *
 
 # check if GRASS is running or not

Modified: grass/trunk/doc/python/vector_example_ctypes.py
===================================================================
--- grass/trunk/doc/python/vector_example_ctypes.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/doc/python/vector_example_ctypes.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -7,7 +7,7 @@
 
 import os, sys
 
-from grass.lib.grass  import *
+from grass.lib.gis    import *
 from grass.lib.vector import *
 
 if not os.environ.has_key("GISBASE"):

Modified: grass/trunk/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/gui/wxpython/gui_modules/wxnviz.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -22,7 +22,7 @@
 from threading import Thread
 
 from ctypes import *
-from grass.lib.grass import *
+from grass.lib.gis   import *
 from grass.lib.g3d   import *
 from grass.lib.ogsf  import *
 from grass.lib.nviz  import *

Modified: grass/trunk/gui/wxpython/gui_modules/wxvdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxvdigit.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/gui/wxpython/gui_modules/wxvdigit.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -24,7 +24,7 @@
 
 from wxvdriver   import DisplayDriver
 
-from grass.lib.grass  import *
+from grass.lib.gis    import *
 from grass.lib.vector import *
 from grass.lib.vedit  import *
 from grass.lib.dbmi   import *

Modified: grass/trunk/gui/wxpython/gui_modules/wxvdriver.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxvdriver.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/gui/wxpython/gui_modules/wxvdriver.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -24,7 +24,7 @@
 from debug import Debug
 from preferences import globalSettings as UserSettings
 
-from grass.lib.grass  import *
+from grass.lib.gis    import *
 from grass.lib.vector import *
 from grass.lib.vedit  import *
 

Modified: grass/trunk/lib/python/ctypes/Makefile
===================================================================
--- grass/trunk/lib/python/ctypes/Makefile	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/lib/python/ctypes/Makefile	2011-04-10 20:36:54 UTC (rev 45892)
@@ -9,11 +9,11 @@
 DOXNAME=
 DOXINPUT=grasspython.dox
 
-MODULES = date grass raster gmath proj imagery vector display stats \
+MODULES = date gis raster gmath proj imagery vector display stats \
 	dbmi g3d arraystats cluster trans vedit ogsf nviz
 
 date_LIBS       = $(DATETIMELIB)
-grass_LIBS      = $(GISLIB)
+gis_LIBS      = $(GISLIB)
 raster_LIBS     = $(RASTERLIB)
 gmath_LIBS      = $(GMATHLIB)
 proj_LIBS       = $(GPROJLIB)
@@ -31,7 +31,7 @@
 nviz_LIBS       = $(NVIZLIB)
 
 date_HDRS       = datetime.h P_datetime.h
-grass_HDRS      = gis.h gisdefs.h
+gis_HDRS        = gis.h gisdefs.h
 raster_HDRS     = raster.h rasterdefs.h
 gmath_HDRS      = gmath.h
 proj_HDRS       = gprojects.h

Modified: grass/trunk/lib/python/ctypes/__init__.py
===================================================================
--- grass/trunk/lib/python/ctypes/__init__.py	2011-04-10 18:43:14 UTC (rev 45891)
+++ grass/trunk/lib/python/ctypes/__init__.py	2011-04-10 20:36:54 UTC (rev 45892)
@@ -1,5 +1,5 @@
 import date
-import grass
+import gis
 import raster
 import gmath
 import proj



More information about the grass-commit mailing list