[GRASS-SVN] r68738 - grass-addons/grass7/raster/r.forestfrag
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 22 12:50:54 PDT 2016
Author: wenzeslaus
Date: 2016-06-22 12:50:53 -0700 (Wed, 22 Jun 2016)
New Revision: 68738
Modified:
grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py
Log:
r.forestfrag: remove 'we are in GRASS' test
The current implementation does not
work because the import likely fails
before that and g.message will be
likely unavailable if condition is true.
This test is not that important for addons
and is currently not used for core modules.
Modified: grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py
===================================================================
--- grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py 2016-06-22 19:46:34 UTC (rev 68737)
+++ grass-addons/grass7/raster/r.forestfrag/r.forestfrag.py 2016-06-22 19:50:53 UTC (rev 68738)
@@ -80,10 +80,6 @@
import string
import grass.script as gs
-if not os.environ.has_key("GISBASE"):
- gs.message(_("You must be in GRASS GIS to run this program."))
- sys.exit(1)
-
# create set to store names of temporary maps to be deleted upon exit
clean_rast = []
More information about the grass-commit
mailing list