From 30ec9806e03c4d0f72c05f7d5f5754a662f757e1 Mon Sep 17 00:00:00 2001 From: joey0320 Date: Fri, 28 Apr 2023 13:30:34 -0700 Subject: [PATCH] final fix --- scripts/uniquify-module-names.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/uniquify-module-names.py b/scripts/uniquify-module-names.py index 5b058651c8..641ef56367 100755 --- a/scripts/uniquify-module-names.py +++ b/scripts/uniquify-module-names.py @@ -141,7 +141,11 @@ def write_filelist(modules, out_file): for path in fl: writeOut = False for dm in modules: - if dm in path: + bm_ext = os.path.basename(path).split(".") + bm_ext.pop() + bm = ".".join(bm_ext) + print(bm) + if dm == bm: writeOut = True break