Skip to content

Commit

Permalink
wxGUI: do not import from pygrass on gui startup (#2202)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
petrasovaa committed Feb 13, 2022
1 parent 3460a60 commit 8e66baa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gui/wxpython/gui_core/gselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
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

Expand Down Expand Up @@ -2840,7 +2839,7 @@ def _append_mapset_signatures(self, mapset, element, items):
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))


Expand Down

0 comments on commit 8e66baa

Please sign in to comment.