[GRASS-SVN] r66638 - grass/branches/releasebranch_7_0/lib/python/pygrass
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 28 04:37:51 PDT 2015
Author: martinl
Date: 2015-10-28 04:37:51 -0700 (Wed, 28 Oct 2015)
New Revision: 66638
Modified:
grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py
Log:
pygrass util set_path bug (#2785)
(merge r66637 from trunk)
Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py 2015-10-28 11:36:22 UTC (rev 66637)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/utils.py 2015-10-28 11:37:51 UTC (rev 66638)
@@ -292,7 +292,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
from grass.pygrass.utils import get_lib_path
More information about the grass-commit
mailing list