[GRASS-SVN] r37462 - grass/trunk/scripts/d.rast.leg

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 25 05:32:51 EDT 2009


Author: hamish
Date: 2009-05-25 05:32:51 -0400 (Mon, 25 May 2009)
New Revision: 37462

Modified:
   grass/trunk/scripts/d.rast.leg/d.rast.leg.py
Log:
pylib bits

Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2009-05-25 08:58:16 UTC (rev 37461)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py	2009-05-25 09:32:51 UTC (rev 37462)
@@ -71,7 +71,7 @@
 
 import sys
 import os
-from grass.script import core as grass
+from grass.script import core as grass, raster
 
 def make_frame(f, b, t, l, r):
     (ft, fb, fl, fr) = f
@@ -123,7 +123,7 @@
     else:
 	lmap = map
 
-    kv = grass.raster_info(map = lmap)
+    kv = raster.raster_info(map = lmap)
     if kv['datatype'] is 'CELL':
 	leg_at = None
     else:



More information about the grass-commit mailing list