Browse Source

pygrass util set_path bug (https://trac.osgeo.org/grass/ticket/2785)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66637 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
f9b5676513
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/pygrass/utils.py

+ 1 - 1
lib/python/pygrass/utils.py

@@ -313,7 +313,7 @@ def set_path(modulename, dirname, path='.'):
     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)