From 526a462ef4133ce4b944a4d3dd2409accb2e3db7 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Mon, 23 Nov 2020 22:33:12 +0000 Subject: [PATCH] Overwrite original AFP file instead of making a temporary copy. --- bemani/utils/afputils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bemani/utils/afputils.py b/bemani/utils/afputils.py index cbc3409..3c3ac1d 100644 --- a/bemani/utils/afputils.py +++ b/bemani/utils/afputils.py @@ -1721,7 +1721,7 @@ def main() -> int: afpfile.unparse() else: print(f"Writing {args.file}...") - with open(args.file + ".tmp", "wb") as bfp: + with open(args.file, "wb") as bfp: bfp.write(afpfile.unparse()) return 0