[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r46865 - grass/trunk/lib/python
From:       svn_grass () osgeo ! org
Date:       2011-06-30 10:51:34
Message-ID: 20110630105135.04E00390352 () trac ! osgeo ! org
[Download RAW message or body]

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

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic