瀏覽代碼

wxGUI: don't crash when missing vdigit

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35633 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父節點
當前提交
20d9da0b1c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      gui/wxpython/gui_modules/vdigit.py

+ 3 - 3
gui/wxpython/gui_modules/vdigit.py

@@ -22,7 +22,7 @@ Classes:
  - VDigitDuplicatesDialog
  - VDigitVBuildDialog
 
-(C) 2007-2008 by the GRASS Development Team
+(C) 2007-2009 by the GRASS Development Team
 
 This program is free software under the GNU General Public
 License (>=v2). Read the file COPYING that comes with GRASS
@@ -53,16 +53,16 @@ try:
     sys.path.append(digitPath)
     import grass7_wxvdigit as wxvdigit
     GV_LINES = wxvdigit.GV_LINES
+    PseudoDC = wxvdigit.PseudoDC
     digitErr = ''
 except ImportError, err:
     GV_LINES = None
+    PseudoDC = None
     digitErr = err
     print >> sys.stderr, "%sWARNING: Digitization tool is disabled (%s). " \
           "Detailed information in README file." % \
           (os.linesep, err)
 
-PseudoDC = wxvdigit.PseudoDC
-
 class AbstractDigit:
     """
     Abstract digitization class