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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 13 09:02:27 PST 2014


Author: martinl
Date: 2014-12-13 09:02:27 -0800 (Sat, 13 Dec 2014)
New Revision: 63528

Modified:
   grass/trunk/lib/python/script/core.py
Log:
pythonlib: make_command(): do not include Popen opts


Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py	2014-12-13 15:17:13 UTC (rev 63527)
+++ grass/trunk/lib/python/script/core.py	2014-12-13 17:02:27 UTC (rev 63528)
@@ -277,6 +277,8 @@
             raise ScriptError("'-' is not a valid flag")
         args.append("-%s" % flags)
     for opt, val in options.iteritems():
+        if opt in _popen_args:
+            continue
         if val != None:
             if opt.startswith('_'):
                 opt = opt[1:]



More information about the grass-commit mailing list