[GRASS-SVN] r51062 - grass-addons/grass6/raster/r.hazard.flood
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 14 19:24:23 EDT 2012
Author: madi
Date: 2012-03-14 16:24:23 -0700 (Wed, 14 Mar 2012)
New Revision: 51062
Modified:
grass-addons/grass6/raster/r.hazard.flood/r.hazard.flood.py
Log:
import control added
Modified: grass-addons/grass6/raster/r.hazard.flood/r.hazard.flood.py
===================================================================
--- grass-addons/grass6/raster/r.hazard.flood/r.hazard.flood.py 2012-03-14 22:15:54 UTC (rev 51061)
+++ grass-addons/grass6/raster/r.hazard.flood/r.hazard.flood.py 2012-03-14 23:24:23 UTC (rev 51062)
@@ -44,8 +44,15 @@
#% required: yes
#%END
-import grass.script as grass
-import os, sys
+import sys
+import os
+try:
+ import grass.script as grass
+except:
+ try:
+ from grass.script import core as grass
+ except:
+ print "grass.script can't be imported."
if not os.environ.has_key("GISBASE"):
print "You must be in GRASS GIS to run this program."
More information about the grass-commit
mailing list