From 0b6c960ca70764deffff84b5835502294ddf3f7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alicia=20Boya=20Garc=C3=ADa?= Date: Fri, 23 Nov 2018 19:13:49 +0100 Subject: [PATCH] gst-uninstalled: Don't change current working directory 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-uninstalled.py b/gst-uninstalled.py index 0596535..0c230a0 100755 --- a/gst-uninstalled.py +++ b/gst-uninstalled.py @@ -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) -- 2.7.4