浏览代码

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 年之前
父节点
当前提交
f9b5676513
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)