Explorar el Código

pythonlib: make_command(): do not include Popen opts

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63528 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 10 años
padre
commit
fa8dc6b320
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/python/script/core.py

+ 2 - 0
lib/python/script/core.py

@@ -277,6 +277,8 @@ def make_command(prog, flags="", overwrite=False, quiet=False, verbose=False,
             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:]