Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gui/wxpython/tools/build_modules_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import grass.script.core as gcore
import grass.script.task as gtask
from grass.exceptions import ScriptError


def escapeXML(text):
Expand Down Expand Up @@ -80,11 +81,11 @@ def get_module_metadata(name):
"""
try:
task = gtask.parse_interface(name)
except:
except ScriptError as exc:
sys.stderr.write(
"Cannot parse interface for module %s. Empty strings"
" will be placed instead of description and keywords."
"\n" % name
" Reason: %s\n" % (name, str(exc))
)
return "", ""

Expand Down
3 changes: 2 additions & 1 deletion lib/init/grass.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,8 @@ def set_paths(grass_config_dir):

# Set LD_LIBRARY_PATH (etc) to find GRASS shared libraries
# this works for subprocesses but won't affect the current process
path_prepend(gpath("lib"), LD_LIBRARY_PATH_VAR)
if LD_LIBRARY_PATH_VAR:
path_prepend(gpath("lib"), LD_LIBRARY_PATH_VAR)


def find_exe(pgm):
Expand Down