mirror of
https://source.perfectable.org/nivertius/napi.git
synced 2025-07-02 06:55:03 +02:00
suppressed output from 7zip
This commit is contained in:
parent
71b4e37d2d
commit
f090173aca
1 changed files with 4 additions and 3 deletions
7
napi
7
napi
|
@ -83,9 +83,10 @@ for movie_filename in args:
|
||||||
input_filename, # input file
|
input_filename, # input file
|
||||||
]
|
]
|
||||||
|
|
||||||
with open(subtitle_filename, "w") as subtitle_file:
|
with open(os.devnull, 'w') as error_file:
|
||||||
process = subprocess.Popen(executed, stdout=subtitle_file)
|
with open(subtitle_filename, "w") as subtitle_file:
|
||||||
result = process.wait()
|
process = subprocess.Popen(executed, stdout=subtitle_file, stderr=error_file)
|
||||||
|
result = process.wait()
|
||||||
|
|
||||||
if result != 0:
|
if result != 0:
|
||||||
print "%s: 7zip returned non-zero code: %s" % (movie_filename, subtitle_filename)
|
print "%s: 7zip returned non-zero code: %s" % (movie_filename, subtitle_filename)
|
||||||
|
|
Loading…
Add table
Reference in a new issue