diff options
author | Florian Dold <florian@dold.me> | 2022-10-28 14:45:29 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-28 14:45:29 +0200 |
commit | 355a3172699b96f1040edcb577c07a681802b3ae (patch) | |
tree | 424c04302585d271168253c7474f07a92574010b | |
parent | 281e3352e030d06943ea8615b78fa21ca63bc2bc (diff) | |
download | build-common-355a3172699b96f1040edcb577c07a681802b3ae.tar.gz build-common-355a3172699b96f1040edcb577c07a681802b3ae.tar.bz2 build-common-355a3172699b96f1040edcb577c07a681802b3ae.zip |
-compat
-rw-r--r-- | talerbuildconfig.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/talerbuildconfig.py b/talerbuildconfig.py index 394e8e9..1b531a8 100644 --- a/talerbuildconfig.py +++ b/talerbuildconfig.py @@ -158,13 +158,14 @@ class BuildConfig: if self.configmk_enabled: if self.configmk_dotfile: - print("writing .config.mk") d = Path(".") + cf = d / ".config.mk" else: - print("writing config.mk") d = Path(os.environ.get("TALERBUILDSYSTEMDIR", ".")) + cf = d / "config.mk" d.mkdir(parents=True, exist_ok=True) - with open(d / ".config.mk", "w") as f: + print(f"writing {cf}") + with open(cf, "w") as f: f.write("# this makefile fragment is autogenerated by configure.py\n") if self.prefix_enabled: f.write(f"prefix = {args.prefix}\n") |