[GRASS-SVN] r37474 - grass/trunk/scripts/d.rast.leg
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 25 10:58:32 EDT 2009
Author: martinl
Date: 2009-05-25 10:58:32 -0400 (Mon, 25 May 2009)
New Revision: 37474
Modified:
grass/trunk/scripts/d.rast.leg/d.rast.leg.py
Log:
probably more readable form for importing modules from grass.script
Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg.py
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2009-05-25 14:53:03 UTC (rev 37473)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg.py 2009-05-25 14:58:32 UTC (rev 37474)
@@ -71,7 +71,7 @@
import sys
import os
-from grass.script import core as grass, raster
+from grass.script import core, raster as grass
def make_frame(f, b, t, l, r):
(ft, fb, fl, fr) = f
@@ -123,7 +123,7 @@
else:
lmap = map
- kv = raster.raster_info(map = lmap)
+ kv = grass.raster_info(map = lmap)
if kv['datatype'] is 'CELL':
leg_at = None
else:
More information about the grass-commit
mailing list