From 126e39c1bdeef8cae7dbadc8cff14f87397d750e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Fri, 14 Apr 2023 15:06:29 +0200 Subject: [PATCH] devenv: generates the dump file in the builddir To avoid a builddir repetition in the command to generate the devenv file, use the builddir to write the file --- mesonbuild/mdevenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py index 624fec99e..53719bf30 100644 --- a/mesonbuild/mdevenv.py +++ b/mesonbuild/mdevenv.py @@ -169,7 +169,7 @@ def run(options: argparse.Namespace) -> int: if options.dump is True: dump(devenv, varnames, dump_fmt) else: - with open(options.dump, "w", encoding='utf-8') as output: + with open(os.path.join(options.builddir, options.dump), "w", encoding='utf-8') as output: dump(devenv, varnames, dump_fmt, output) return 0