Explorar el Código

wxGUI: missing import

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49493 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová hace 13 años
padre
commit
97b411fb0c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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