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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 28 04:36:22 PDT 2015


Author: martinl
Date: 2015-10-28 04:36:22 -0700 (Wed, 28 Oct 2015)
New Revision: 66637

Modified:
   grass/trunk/lib/python/pygrass/utils.py
Log:
pygrass util set_path bug (#2785)

Modified: grass/trunk/lib/python/pygrass/utils.py
===================================================================
--- grass/trunk/lib/python/pygrass/utils.py	2015-10-28 10:42:08 UTC (rev 66636)
+++ grass/trunk/lib/python/pygrass/utils.py	2015-10-28 11:36:22 UTC (rev 66637)
@@ -313,7 +313,7 @@
     pathlib = os.path.join(path, dirname)
     if os.path.exists(pathlib):
         # we are running the script from the script directory
-        sys.path.append(os.path.abspath(path))
+        sys.path.append(os.path.abspath(pathlib))
     else:
         # running from GRASS GIS session
         path = get_lib_path(modulename, dirname)



More information about the grass-commit mailing list