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)