[GRASS-SVN] r48906 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 22 06:30:41 EDT 2011


Author: martinl
Date: 2011-10-22 03:30:40 -0700 (Sat, 22 Oct 2011)
New Revision: 48906

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
Log:
wxGUI: don't fail on missing openGL support


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py	2011-10-22 09:19:25 UTC (rev 48905)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py	2011-10-22 10:30:40 UTC (rev 48906)
@@ -22,10 +22,13 @@
 from threading import Thread
 
 from ctypes import *
-from grass.lib.gis   import *
-from grass.lib.g3d   import *
-from grass.lib.ogsf  import *
-from grass.lib.nviz  import *
+try:
+    from grass.lib.gis   import *
+    from grass.lib.g3d   import *
+    from grass.lib.ogsf  import *
+    from grass.lib.nviz  import *
+except ImportError, e:
+    sys.stderr.write(_("3D view mode: %s\n") % e)
 
 from debug import Debug
 



More information about the grass-commit mailing list