[GRASS-SVN] r48907 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 22 06:33:50 EDT 2011
Author: martinl
Date: 2011-10-22 03:33:50 -0700 (Sat, 22 Oct 2011)
New Revision: 48907
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxnviz.py
Log:
wxGUI: don't fail on missing openGL support
(merge r48906 from trunk)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxnviz.py 2011-10-22 10:30:40 UTC (rev 48906)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxnviz.py 2011-10-22 10:33:50 UTC (rev 48907)
@@ -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