gst-env: Fix creation of gdb-autoload dirs on Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Jun 2020 13:36:22 +0000 (19:06 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Jun 2020 13:36:22 +0000 (19:06 +0530)
commitd570c770adeb89ab5b954f4dadb89d6daadbd238
tree36e4e02e9cfb6f297e25075bc3235c474281f2c1
parent8b9073367fc9b282f4fe379d7d021d4e4986812a
gst-env: Fix creation of gdb-autoload dirs on Windows

`bdir[1:]` is supposed to convert `/path/to/bdir` to `path/to/bdir`
which is only correct on UNIX. On Windows it will convert
`C:\path\to\bdir` to `:\path\to\bdir` which is totally wrong.

Use pathlib instead, which makes it trivial to do the conversion using
`joinpath(*bdir.parts)`

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