mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
parent
7ae26cbe46
commit
80c8ad5852
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue