gst-env: spawn a shell to execute commands on windows
authorJordan Petridis <jordan@centricular.com>
Mon, 9 May 2022 09:46:19 +0000 (12:46 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 15 May 2022 09:34:58 +0000 (09:34 +0000)
commitd63a2c786bac552d6f9d4fe122047a603be056f6
tree9d4d8a089a4d5b4cc534fb148ecb4122a563bc59
parentfff82f565074d6f8fd0b6015d03d04169bba6e83
gst-env: spawn a shell to execute commands on windows

On windows, if you are not using built-in commands you need
to pass the full path of your executable into the subprocess.call/
Popen syscall. ex `c:/foo/bar/baz.exe`. This get's long and is
not ergonomic when you want to run trivial task like:

`gst-env.py ninja` or `gst-inspect0.0` or `gst-validate-launcher`

Instead, on windows, always launch a shell to be able to resolve
the executable from the PATH.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2397>
gst-env.py