From 80c8ad58523ab99825c02f3855f9bd3dc9945d57 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Tue, 17 Jan 2017 14:10:41 +1030 Subject: [PATCH] remove -o from 7zip. Reverses #1149 Fixes #1175 --- core/extractor/extractor.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/extractor/extractor.py b/core/extractor/extractor.py index 227f10d3..ed887187 100644 --- a/core/extractor/extractor.py +++ b/core/extractor/extractor.py @@ -112,10 +112,7 @@ def extract(filePath, outputDestination): try: # now works same for nt and *nix 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': info = subprocess.STARTUPINFO() info.dwFlags |= subprocess.STARTF_USESHOWWINDOW