[GRASS-SVN] r46865 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 30 06:51:34 EDT 2011
Author: martinl
Date: 2011-06-30 03:51:34 -0700 (Thu, 30 Jun 2011)
New Revision: 46865
Modified:
grass/trunk/lib/python/core.py
Log:
fix r46862
Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py 2011-06-30 10:43:17 UTC (rev 46864)
+++ grass/trunk/lib/python/core.py 2011-06-30 10:51:34 UTC (rev 46865)
@@ -447,12 +447,9 @@
lines = s.splitlines()
if not lines or lines[0].rstrip('\r\n') != "@ARGS_PARSED@":
- if p.returncode == 0:
- sys.exit(0)
- else:
- sys.stdout.write(s)
- sys.exit(1)
-
+ sys.stdout.write(s)
+ sys.exit(p.returncode)
+
return _parse_opts(lines[1:])
# interface to g.tempfile
More information about the grass-commit
mailing list