gst-uninstalled: Don't change current working directory
authorAlicia Boya García <aboya@igalia.com>
Fri, 23 Nov 2018 18:13:49 +0000 (19:13 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 23 Nov 2018 18:22:43 +0000 (18:22 +0000)
Currently gst-uninstalled.py changes the current directory to the root
of the gst-build before executing execute the command passed as
arguments. This is unnecessary, it creates confusion and makes scripting
more cumbersome. This patch fixes that.

gst-uninstalled.py

index 0596535..0c230a0 100755 (executable)
@@ -221,7 +221,7 @@ if __name__ == "__main__":
                 args.append("--rcfile")
                 args.append(tmprc.name)
     try:
-        exit(subprocess.call(args, cwd=options.srcdir, close_fds=False,
+        exit(subprocess.call(args, close_fds=False,
                              env=get_subprocess_env(options, gst_version)))
     except subprocess.CalledProcessError as e:
         exit(e.returncode)