Browse Source

wxGUI: do not import from pygrass on gui startup (#2202)

Replaces pygrass.utils.decode as not needed here, grass.utils.decode was internally called anyway.
This should prevent that gui crashes when loading C libraries fails, see #2192.
Anna Petrasova 3 years ago
parent
commit
8e66baaf5e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      gui/wxpython/gui_core/gselect.py

+ 1 - 2
gui/wxpython/gui_core/gselect.py

@@ -59,7 +59,6 @@ import wx.lib.filebrowsebutton as filebrowse
 import grass.script as grass
 from grass.script import task as gtask
 from grass.exceptions import CalledModuleError
-from grass.pygrass.utils import decode
 
 from gui_core.widgets import ManageSettingsWidget, CoordinatesValidator
 
@@ -2840,7 +2839,7 @@ class SignatureSelect(wx.ComboBox):
         sig_list = list_ptr()
         count = I_signatures_list_by_type(sig_type, mapset, ctypes.byref(sig_list))
         for n in range(count):
-            items.append(decode(sig_list[n]))
+            items.append(grass.decode(sig_list[n]))
         I_free_signatures_list(count, ctypes.byref(sig_list))