Changeset 66411


Ignore:
Timestamp:
Oct 4, 2015, 5:09:13 AM (9 years ago)
Author:
martinl
Message:

pythonlib: check also libname in get_lib_path()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/lib/python/pygrass/utils.py

    r66104 r66411  
    292292    if isdir(join(getenv('GISBASE'), 'etc', modname)):
    293293        path = join(os.getenv('GISBASE'), 'etc', modname)
     294    elif getenv('GRASS_ADDON_BASE') and \
     295            isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)):
     296        path = join(getenv('GRASS_ADDON_BASE'), 'etc', modname, libname)
    294297    elif getenv('GRASS_ADDON_BASE') and \
    295298            isdir(join(getenv('GRASS_ADDON_BASE'), 'etc', modname)):
Note: See TracChangeset for help on using the changeset viewer.