gst-env: import exit from sys
authorStéphane Cerveau <scerveau@igalia.com>
Fri, 4 Nov 2022 10:14:55 +0000 (11:14 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 20:07:30 +0000 (20:07 +0000)
On windows the Cmd Prompt for VS 2019 complains
that exit is not defined.

  File "C:/data/gstreamer/gst-env.py", line 622, in <module>
    exit(subprocess.call(args, close_fds=False, env=env))

NameError: name 'exit' is not defined
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3324>

gst-env.py

index ae03246..fb266ad 100755 (executable)
@@ -14,6 +14,7 @@ import pathlib
 import signal
 from functools import lru_cache
 from pathlib import PurePath, Path
+from sys import exit
 
 from typing import Any