[GRASS-SVN] r36214 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 6 17:06:59 EST 2009
Author: martinl
Date: 2009-03-06 17:06:58 -0500 (Fri, 06 Mar 2009)
New Revision: 36214
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
wxGUI: show error message if nviz extension is not available
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2009-03-06 16:31:50 UTC (rev 36213)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2009-03-06 22:06:58 UTC (rev 36214)
@@ -37,10 +37,7 @@
from preferences import globalSettings as UserSettings
sys.path.append(os.path.join(globalvar.ETCWXDIR, "nviz"))
-try:
- import grass7_wxnviz as wxnviz
-except ImportError:
- pass
+import grass7_wxnviz as wxnviz
wxUpdateProperties, EVT_UPDATE_PROP = NewEvent()
wxUpdateView, EVT_UPDATE_VIEW = NewEvent()
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2009-03-06 16:31:50 UTC (rev 36213)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2009-03-06 22:06:58 UTC (rev 36214)
@@ -30,10 +30,7 @@
from nviz_mapdisp import wxUpdateProperties as wxUpdateProperties
sys.path.append(os.path.join(globalvar.ETCWXDIR, "nviz"))
-try:
- import grass7_wxnviz as wxnviz
-except ImportError:
- pass
+import grass7_wxnviz as wxnviz
class NvizToolWindow(wx.Frame):
"""Experimental window for Nviz tools
More information about the grass-commit
mailing list