Skip to content

Commit

Permalink
Do not path split in MakeLexicalFilename
Browse files Browse the repository at this point in the history
Prevents files like aa.bb.cpp from getting clobbered
  • Loading branch information
Headline authored and dvander committed May 24, 2024
1 parent 0952a7f commit e8bc23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ambuild2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e8bc23d

Please sign in to comment.