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:
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)])
Output is:
Although the return code is 0, the zip never gets unzipped.