[GRASS-SVN] r37686 - grass/branches/releasebranch_6_4/swig/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 1 04:54:27 EDT 2009
Author: neteler
Date: 2009-06-01 04:54:27 -0400 (Mon, 01 Jun 2009)
New Revision: 37686
Modified:
grass/branches/releasebranch_6_4/swig/python/test.py
Log:
updated; working again
Modified: grass/branches/releasebranch_6_4/swig/python/test.py
===================================================================
--- grass/branches/releasebranch_6_4/swig/python/test.py 2009-06-01 08:54:13 UTC (rev 37685)
+++ grass/branches/releasebranch_6_4/swig/python/test.py 2009-06-01 08:54:27 UTC (rev 37686)
@@ -5,7 +5,7 @@
import os, sys
-import python_grass6 as g6lib
+from grass.lib import grass
if not os.environ.has_key("GISBASE"):
print "You must be in GRASS GIS to run this program."
@@ -14,16 +14,16 @@
rname = 'elevation.dem'
mapset = 'PERMANENT'
-g6lib.G_gisinit('')
-g6lib.G_find_cell2(rname,'')
+grass.G_gisinit('')
+grass.G_find_cell2(rname,'')
print mapset
print 'prints 0 if map was found'
-print 'roads:'
-print g6lib.G_raster_map_type('roads',mapset)
+print 'roads raster map:'
+print grass.G_raster_map_type('roads',mapset)
-print 'elevation.dem:'
-print g6lib.G_raster_map_type(rname,mapset)
+print 'elevation.dem raster map:'
+print grass.G_raster_map_type(rname,mapset)
More information about the grass-commit
mailing list