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.
This commit is contained in:
Alicia Boya García 2018-11-23 19:13:49 +01:00 committed by Thibault Saunier
parent 96a1384af9
commit 0b6c960ca7

View file

@ -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)