mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
added global nice and ionice for external processes. Fixes #479
This commit is contained in:
parent
6df93c16a1
commit
14935b5388
12 changed files with 164 additions and 30 deletions
|
@ -88,6 +88,8 @@ def extract(filePath, outputDestination):
|
|||
os.chdir(outputDestination) # Not all unpack commands accept full paths, so just extract into this directory
|
||||
try: # now works same for nt and *nix
|
||||
cmd.append(filePath) # add filePath to final cmd arg.
|
||||
if platform.system() != 'Windows':
|
||||
cmd = nzbtomedia.NICENESS + cmd
|
||||
cmd2 = cmd
|
||||
cmd2.append("-p-") # don't prompt for password.
|
||||
p = Popen(cmd2) # should extract files fine.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue