Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
461ace8c97
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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 \