[GRASS-SVN] r47691 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 17 08:14:44 EDT 2011
Author: martinl
Date: 2011-08-17 05:14:44 -0700 (Wed, 17 Aug 2011)
New Revision: 47691
Modified:
grass/trunk/gui/wxpython/gui_modules/wxnviz.py
Log:
wxNviz: don't fail if GRASS ctypes libs are not available
Modified: grass/trunk/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxnviz.py 2011-08-17 10:33:02 UTC (rev 47690)
+++ grass/trunk/gui/wxpython/gui_modules/wxnviz.py 2011-08-17 12:14:44 UTC (rev 47691)
@@ -26,12 +26,15 @@
from numpy import matrix
from ctypes import *
-from grass.lib.gis import *
-from grass.lib.raster3d import *
-from grass.lib.ogsf import *
-from grass.lib.nviz import *
-from grass.lib.raster import *
-
+try:
+ from grass.lib.gis import *
+ from grass.lib.raster3d import *
+ from grass.lib.ogsf import *
+ from grass.lib.nviz import *
+ from grass.lib.raster import *
+except ImportError, e:
+ sys.stderr.write("3D view mode: %s\n" % e)
+
from debug import Debug
log = None
More information about the grass-commit
mailing list