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