From 7f2e872956401e5eb9ae7c8318b385e1d4790f2c Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Thu, 20 Aug 2020 20:02:06 +0100 Subject: [PATCH] fix coverage.py --delete-matched --- coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage.py b/coverage.py index 8722fa07e1..9144190192 100755 --- a/coverage.py +++ b/coverage.py @@ -67,7 +67,7 @@ if __name__ == "__main__": exit(1) elif "--delete-matched" in argv or input("Delete them [y/N]? ").upper() == "Y": for func in matched_but_undeleted_asm: - file = glob(path.join(DIR, f"../asm/nonmatchings/*/{func}.s"))[0] + file = glob(path.join(DIR, f"asm/nonmatchings/*/{func}.s"))[0] remove(file) elif len(asm) != len(non_matched): print(f"warning: number of INCLUDE_ASM macros ({len(asm)}) != number of asm files ({len(non_matched)})")