remove -o from 7zip. Reverses #1149 Fixes #1175

This commit is contained in:
clinton-hall 2017-01-17 14:10:41 +10:30
commit 80c8ad5852

View file

@ -112,9 +112,6 @@ def extract(filePath, outputDestination):
try: # now works same for nt and *nix try: # now works same for nt and *nix
info = None info = None
if "7z" in cmd[0] or "7z" in cmd[1]:
cmd.append("-o" + filePath) # add filePath with "-o" argument to prevent absolute path error.
else:
cmd.append(filePath) # add filePath to final cmd arg. cmd.append(filePath) # add filePath to final cmd arg.
if platform.system() == 'Windows': if platform.system() == 'Windows':
info = subprocess.STARTUPINFO() info = subprocess.STARTUPINFO()