[GRASS-SVN] r68156 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 25 13:17:39 PDT 2016


Author: martinl
Date: 2016-03-25 13:17:39 -0700 (Fri, 25 Mar 2016)
New Revision: 68156

Modified:
   grass/trunk/lib/python/script/utils.py
Log:
libpython/set_path(): fix compilation of some addons, see #2968

Modified: grass/trunk/lib/python/script/utils.py
===================================================================
--- grass/trunk/lib/python/script/utils.py	2016-03-25 19:51:57 UTC (rev 68155)
+++ grass/trunk/lib/python/script/utils.py	2016-03-25 20:17:39 UTC (rev 68156)
@@ -291,6 +291,13 @@
         path = '{cwd}{sep}etc{sep}{modname}'.format(cwd=cwd[:idx+len(modname)],
                                                     sep=sep,
                                                     modname=modname)
+        if libname:
+            path += '{pathsep}{cwd}{sep}etc{sep}{modname}{sep}{libname}'.format(
+                cwd=cwd[:idx+len(modname)],
+                sep=sep,
+                modname=modname, libname=libname,
+                pathsep=os.pathsep
+            )
     
     return path
 



More information about the grass-commit mailing list