[GRASS-SVN] r56738 - grass/branches/develbranch_6/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 16 19:36:03 PDT 2013
Author: hamish
Date: 2013-06-16 19:36:03 -0700 (Sun, 16 Jun 2013)
New Revision: 56738
Modified:
grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py
Log:
fix for modules which need an xterm/xmon and catch a traceback, #945(b)
Modified: grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py 2013-06-16 22:17:54 UTC (rev 56737)
+++ grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py 2013-06-17 02:36:03 UTC (rev 56738)
@@ -39,7 +39,7 @@
sys.path.append(os.path.join(globalvar.ETCDIR, "python"))
from grass.script import core as grass
-from core.gcmd import RunCommand, GError, GMessage
+from core.gcmd import Command, RunCommand, GError, GMessage
from core.settings import UserSettings
from core.utils import SetAddOnPath
from gui_core.preferences import MapsetAccess, PreferencesDialog, EVT_SETTINGS_CHANGED
@@ -1225,7 +1225,8 @@
@param need_xmon True to start X monitor
"""
# unset display mode
- del os.environ['GRASS_RENDER_IMMEDIATE']
+ if os.getenv('GRASS_RENDER_IMMEDIATE'):
+ del os.environ['GRASS_RENDER_IMMEDIATE']
if need_xmon:
# open next available xmon
More information about the grass-commit
mailing list