[GRASS-SVN] r42278 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon May 17 21:10:40 EDT 2010
Author: glynn
Date: 2010-05-17 21:10:38 -0400 (Mon, 17 May 2010)
New Revision: 42278
Modified:
grass/trunk/gui/wxpython/gui_modules/workspace.py
Log:
Catch errors importing wxnviz
Modified: grass/trunk/gui/wxpython/gui_modules/workspace.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/workspace.py 2010-05-17 23:28:45 UTC (rev 42277)
+++ grass/trunk/gui/wxpython/gui_modules/workspace.py 2010-05-18 01:10:38 UTC (rev 42278)
@@ -37,11 +37,11 @@
from preferences import globalSettings as UserSettings
#sys.path.append(os.path.join(globalvar.ETCWXDIR, "nviz"))
-#try:
-# import grass7_wxnviz as wxnviz
-#except ImportError:
-# wxnviz = None
-import wxnviz
+try:
+ #import grass7_wxnviz as wxnviz
+ import wxnviz
+except ImportError:
+ wxnviz = None
class ProcessWorkspaceFile:
def __init__(self, tree):
More information about the grass-commit
mailing list