Browse Source

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 10 years ago
parent
commit
fa8dc6b320
1 changed files with 2 additions and 0 deletions
  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")
             raise ScriptError("'-' is not a valid flag")
         args.append("-%s" % flags)
         args.append("-%s" % flags)
     for opt, val in options.iteritems():
     for opt, val in options.iteritems():
+        if opt in _popen_args:
+            continue
         if val != None:
         if val != None:
             if opt.startswith('_'):
             if opt.startswith('_'):
                 opt = opt[1:]
                 opt = opt[1:]