Browse Source

scipt utils: fix set_path when load libraries from GRASS_ADDON_BASE directory

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67872 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 9 years ago
parent
commit
7f6ce41f48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/script/utils.py

+ 1 - 1
lib/python/script/utils.py

@@ -275,7 +275,7 @@ def get_lib_path(modname, libname=None):
         path = join(os.getenv('GISBASE'), 'etc', modname)
     elif getenv('GRASS_ADDON_BASE') and libname and \
             isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)):
-        path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)
+        path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname)
     elif getenv('GRASS_ADDON_BASE') and \
             isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname)):
         path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname)