Redirect to NULL instead of pipe since we dont use the output

This commit is contained in:
Kovid Goyal
2024-03-14 12:15:15 +05:30
parent c26954c69e
commit 77125798a4

View File

@@ -1067,7 +1067,7 @@ def update_go_generated_files(args: Options, kitty_exe: str) -> None:
env = os.environ.copy()
env['ASAN_OPTIONS'] = 'detect_leaks=0'
cp = subprocess.run([kitty_exe, '+launch', os.path.join(src_base, 'gen/go_code.py')], stdout=subprocess.PIPE, env=env)
cp = subprocess.run([kitty_exe, '+launch', os.path.join(src_base, 'gen/go_code.py')], stdout=subprocess.DEVNULL, env=env)
if cp.returncode != 0:
raise SystemExit(f'Generating go code failed with exit code: {cp.returncode}')