[GRASS-SVN] r67544 - grass/trunk/lib/python/pygrass
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 11 01:43:17 PST 2016
Author: martinl
Date: 2016-01-11 01:43:16 -0800 (Mon, 11 Jan 2016)
New Revision: 67544
Modified:
grass/trunk/lib/python/pygrass/utils.py
Log:
pygrass: fix error message when path not found
Modified: grass/trunk/lib/python/pygrass/utils.py
===================================================================
--- grass/trunk/lib/python/pygrass/utils.py 2016-01-10 20:42:09 UTC (rev 67543)
+++ grass/trunk/lib/python/pygrass/utils.py 2016-01-11 09:43:16 UTC (rev 67544)
@@ -328,7 +328,9 @@
# running from GRASS GIS session
path = get_lib_path(modulename, dirname)
if path is None:
- raise ImportError("Not able to find the path %s directory." % path)
+ pathname = os.path.join(modulename, dirname) if dirname else modulename
+ raise ImportError("Not able to find the path '%s' directory "
+ "(current dir '%s')." % (pathname, os.getcwd()))
sys.path.append(path)
More information about the grass-commit
mailing list