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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 28 17:13:22 PDT 2013


Author: wenzeslaus
Date: 2013-08-28 17:13:22 -0700 (Wed, 28 Aug 2013)
New Revision: 57536

Modified:
   grass/trunk/lib/init/grass.py
Log:
init: it is not needed to check DISPLAY environmental variable on mac os x

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2013-08-28 21:53:19 UTC (rev 57535)
+++ grass/trunk/lib/init/grass.py	2013-08-29 00:13:22 UTC (rev 57536)
@@ -521,7 +521,7 @@
 def check_gui():
     global grass_gui, wxpython_base
     # Check if we are running X windows by checking the DISPLAY variable
-    if os.getenv('DISPLAY') or windows:
+    if os.getenv('DISPLAY') or windows or macosx:
         # Check if python is working properly
         if grass_gui == 'wxpython':
             nul = open(os.devnull, 'w')



More information about the grass-commit mailing list