Browse Source

pythonlib: check also libname in get_lib_path()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66411 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
461ace8c97
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/python/pygrass/utils.py

+ 3 - 0
lib/python/pygrass/utils.py

@@ -292,6 +292,9 @@ def get_lib_path(modname, libname):
     if isdir(join(getenv('GISBASE'), 'etc', modname)):
         path = join(os.getenv('GISBASE'), 'etc', modname)
     elif getenv('GRASS_ADDON_BASE') and \
+            isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)):
+        path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)
+    elif getenv('GRASS_ADDON_BASE') and \
             isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname)):
         path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname)
     elif getenv('GRASS_ADDON_BASE') and \