Skip to content

Commit cdf8fa3

Browse files
committed
Add check for addon paths
1 parent 7bd41fc commit cdf8fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/grass/script/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def scan(gisbase, directory):
238238
search_paths = [gisbase]
239239
if env.get("GRASS_ADDON_BASE"):
240240
search_paths.append(env["GRASS_ADDON_BASE"])
241+
if env.get("GRASS_ADDON_PATH"):
242+
search_paths.extend([p for p in env["GRASS_ADDON_PATH"].split(os.pathsep) if p])
241243

242244
for base_dir in search_paths:
243245
for directory in ("bin", "scripts"):

0 commit comments

Comments
 (0)