فهرست منبع

pythonlib: make_command(): do not include Popen opts
(merge https://trac.osgeo.org/grass/changeset/63528 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64059 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 سال پیش
والد
کامیت
6cf2071a8e
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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:]