[GRASS-SVN] r66411 - grass/trunk/lib/python/pygrass

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 4 05:09:13 PDT 2015


Author: martinl
Date: 2015-10-04 05:09:13 -0700 (Sun, 04 Oct 2015)
New Revision: 66411

Modified:
   grass/trunk/lib/python/pygrass/utils.py
Log:
pythonlib: check also libname in get_lib_path()

Modified: grass/trunk/lib/python/pygrass/utils.py
===================================================================
--- grass/trunk/lib/python/pygrass/utils.py	2015-10-04 12:04:49 UTC (rev 66410)
+++ grass/trunk/lib/python/pygrass/utils.py	2015-10-04 12:09:13 UTC (rev 66411)
@@ -292,6 +292,9 @@
     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 \



More information about the grass-commit mailing list