mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
append -o to output path for 7zip. Fixes #1149
This commit is contained in:
parent
66abb2d562
commit
e96998a731
1 changed files with 4 additions and 1 deletions
|
@ -112,6 +112,9 @@ 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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue