[GRASS-SVN] r67824 - grass/branches/releasebranch_7_0/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 13 15:52:11 PST 2016
Author: wenzeslaus
Date: 2016-02-13 15:52:11 -0800 (Sat, 13 Feb 2016)
New Revision: 67824
Modified:
grass/branches/releasebranch_7_0/lib/python/script/core.py
Log:
pythonlib/script: tell the name of not found executable on Windows (backport 67155)
Modified: grass/branches/releasebranch_7_0/lib/python/script/core.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/core.py 2016-02-13 23:48:42 UTC (rev 67823)
+++ grass/branches/releasebranch_7_0/lib/python/script/core.py 2016-02-13 23:52:11 UTC (rev 67824)
@@ -55,7 +55,8 @@
and kwargs.get('executable') is None):
cmd = shutil_which(args[0])
if cmd is None:
- raise OSError
+ raise OSError(_("Cannot find the executable {}")
+ .format(args[0]))
args = [cmd] + args[1:]
name, ext = os.path.splitext(cmd)
if ext.lower() not in self._builtin_exts:
More information about the grass-commit
mailing list