[GRASS-SVN] r30443 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 3 09:57:12 EST 2008
Author: martinl
Date: 2008-03-03 09:57:12 -0500 (Mon, 03 Mar 2008)
New Revision: 30443
Modified:
grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI: error message for missing vdigit module less cryptic
Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py 2008-03-03 14:50:12 UTC (rev 30442)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py 2008-03-03 14:57:12 UTC (rev 30443)
@@ -52,11 +52,13 @@
sys.path.append(digitPath)
import grass6_wxvdigit as vdigit
GV_LINES = vdigit.GV_LINES
+ digitErr = ''
except ImportError, err:
GV_LINES = None
-# print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s). " \
-# "Detailed information in README file." % \
-# (os.linesep, err)
+ digitErr = err
+ # print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s). " \
+ # "Detailed information in README file." % \
+ # (os.linesep, err)
# which interface to use?
if UserSettings.Get(group='advanced', key='digitInterface', subkey='value') == 'vedit' and GV_LINES is not None:
@@ -140,7 +142,7 @@
except StandardError, e:
raise gcmd.DigitError('Unable to initialize display driver, '
'see README file for more information.%s%s'
- 'Details: %s' % (os.linesep, os.linesep, e))
+ 'Details: %s (%s)' % (os.linesep, os.linesep, e, digitErr))
if map and ret == -1:
raise gcmd.DigitError(_('Unable to open vector map <%s> for editing. '
More information about the grass-commit
mailing list