title: 7z command in Python 3.6 subprocess.run() on Windows
body: <p>I have a python script that should run 7z.exe with the command: "x" and switch " -o" using subprocess.run(). The script is as follows:</p>
  
  <pre><code>import subprocess as sb
  
  
  zipperpath = "C:\\Program Files\\7-zip\\7z.exe"
  dirname ="C:\\Users\\ajain\\Desktop\\TempData"
  archivename="UnprocessedData_v3.7z"
  outputfilename="foo"
  
  sb.run([zipperpath,"x",os.path.join(dirname,archivename)," -o",os.path.join(dirname,outputfilename)])
  </code></pre>
  
  <p>Output is:
  <a href="https://i.stack.imgur.com/m3ph1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m3ph1.png" alt="enter image description here"></a>
  Although the return code is 0, the zip never gets unzipped.</p>