Browse Source

wxGUI: missing import

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49493 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 years ago
parent
commit
97b411fb0c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      gui/wxpython/gui_core/forms.py

+ 5 - 0
gui/wxpython/gui_core/forms.py

@@ -73,6 +73,11 @@ import wx.lib.filebrowsebutton as filebrowse
 import wx.lib.scrolledpanel    as scrolled
 from wx.lib.newevent import NewEvent
 
+try:
+    import xml.etree.ElementTree as etree
+except ImportError:
+    import elementtree.ElementTree as etree # Python <= 2.4
+
 from grass.script import core as grass
 from grass.script import task as gtask