[GRASS-SVN] r50263 - grass/branches/releasebranch_6_4/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 18 03:58:45 EST 2012


Author: martinl
Date: 2012-01-18 00:58:45 -0800 (Wed, 18 Jan 2012)
New Revision: 50263

Modified:
   grass/branches/releasebranch_6_4/lib/python/core.py
Log:
pythonlib: #1540 (grass python scripts run from grass6 return 1 on success)
	   (merge r50240 from devbr6)


Modified: grass/branches/releasebranch_6_4/lib/python/core.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/core.py	2012-01-17 21:54:30 UTC (rev 50262)
+++ grass/branches/releasebranch_6_4/lib/python/core.py	2012-01-18 08:58:45 UTC (rev 50263)
@@ -461,7 +461,7 @@
     
     if not lines or lines[0].rstrip('\r\n') != "@ARGS_PARSED@":
 	sys.stdout.write(s)
-	sys.exit(1)
+	sys.exit(p.returncode)
 
     return _parse_opts(lines[1:])
 



More information about the grass-commit mailing list