[GRASS-SVN] r29938 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 3 05:13:34 EST 2008


Author: martinl
Date: 2008-02-03 05:13:34 -0500 (Sun, 03 Feb 2008)
New Revision: 29938

Modified:
   grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI: don't crash when digitization tool disabled

Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py	2008-02-03 07:45:59 UTC (rev 29937)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py	2008-02-03 10:13:34 UTC (rev 29938)
@@ -49,7 +49,9 @@
     digitPath = os.path.join(os.getenv("GISBASE"), "etc", "wx", "vdigit")
     sys.path.append(digitPath)
     import grass6_wxvdigit as vdigit
+    GV_LINES = vdigit.GV_LINES
 except ImportError, err:
+    GV_LINES = None
     print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s). " \
           "Detailed information in README file." % \
           (os.linesep, err)
@@ -59,8 +61,6 @@
 #
 USEVEDIT = True
 
-GV_LINES = vdigit.GV_LINES
-
 class AbstractDigit:
     """
     Abstract digitization class



More information about the grass-commit mailing list