[GRASS-dev] pygrass util.py set_path bug

Matej Krejci matejkrejci at gmail.com
Wed Oct 28 02:55:35 PDT 2015


Hi,

can someone please commit this[1] diff to trunk. The current code doesn't
count with parameters of the function.

thanks
Matej


[1]
Index: lib/python/pygrass/utils.py
===================================================================
--- lib/python/pygrass/utils.py (revision 66629)
+++ lib/python/pygrass/utils.py (working copy)
@@ -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)
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151028/f05f5b03/attachment.html>


More information about the grass-dev mailing list