From e8bc23d75ec523c709ea5f00bad54d3a7e114f43 Mon Sep 17 00:00:00 2001 From: Headline Date: Thu, 23 May 2024 21:25:25 -0700 Subject: [PATCH] Do not path split in MakeLexicalFilename Prevents files like aa.bb.cpp from getting clobbered --- ambuild2/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambuild2/util.py b/ambuild2/util.py index b3b40ee7..5a4de2da 100644 --- a/ambuild2/util.py +++ b/ambuild2/util.py @@ -767,4 +767,4 @@ def BuildDictFromTuple(tup): # Replace anything from a filename that doesn't convert to an identifier. def MakeLexicalFilename(file): - return re.sub('[^a-zA-Z0-9_]+', '_', os.path.splitext(file)[0]) + return re.sub('[^a-zA-Z0-9_]+', '_', file)