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
pull/11683/head
Stéphane Cerveau 2 years ago
parent 22960758aa
commit 126e39c1bd
  1. 2
      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

Loading…
Cancel
Save