浏览代码

wxGUI: fix import order so that GUI doesn't crash when there is a problem with ctypes (merge from trunk, https://trac.osgeo.org/grass/changeset/66065)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@66066 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 年之前
父节点
当前提交
45183416e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/mapdisp/frame.py

+ 1 - 1
gui/wxpython/mapdisp/frame.py

@@ -31,7 +31,6 @@ import wx
 import wx.aui
 
 from core.render        import Map
-from vdigit.toolbars    import VDigitToolbar
 from mapdisp.toolbars   import MapToolbar, NvizIcons
 from mapdisp.gprint     import PrintOptions
 from core.gcmd          import GError, GMessage, RunCommand
@@ -263,6 +262,7 @@ class MapFrame(SingleMapFrame):
         """Add vector digitizer toolbar
         """
         from vdigit.main import haveVDigit, VDigit
+        from vdigit.toolbars import VDigitToolbar
         
         if not haveVDigit:
             from vdigit import errorMsg