[GRASS-SVN] r59210 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Mar 8 02:27:41 PST 2014


Author: martinl
Date: 2014-03-08 02:27:41 -0800 (Sat, 08 Mar 2014)
New Revision: 59210

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: check if GRASS is already running


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2014-03-07 13:37:44 UTC (rev 59209)
+++ grass/trunk/lib/init/grass.py	2014-03-08 10:27:41 UTC (rev 59210)
@@ -1224,6 +1224,9 @@
 cygwin = "cygwin" in sys.platform
 macosx = "darwin" in sys.platform
 
+if 'GISBASE' in os.environ:
+    sys.exit(_("ERROR: GRASS GIS seems to be already running. Exiting."))
+
 # Set GISBASE
 os.environ['GISBASE'] = gisbase
 



More information about the grass-commit mailing list