[GRASS-SVN] r67155 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 15 11:28:22 PST 2015


Author: wenzeslaus
Date: 2015-12-15 11:28:22 -0800 (Tue, 15 Dec 2015)
New Revision: 67155

Modified:
   grass/trunk/lib/python/script/core.py
Log:
pythonlib/script: tell the name of not found executable

Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2015-12-15 19:16:55 UTC (rev 67154)
+++ grass/trunk/lib/python/script/core.py	2015-12-15 19:28:22 UTC (rev 67155)
@@ -64,7 +64,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