makepanda: Amend self-destruct to catch some missing composite files

This commit is contained in:
Sam Edwards 2016-12-26 14:47:58 -07:00
parent 53d946ff87
commit 2288a602ae
1 changed files with 1 additions and 1 deletions

View File

@ -34,5 +34,5 @@ for project in projects:
for path, dirs, files in os.walk(os.path.join(root, project)):
# Get rid of _composite#.cxx files
for filename in files:
if re.match(r'.*_composite[0-9]+\.cxx', filename):
if re.match(r'.*_composite[0-9]*\.(cxx|h|mm)', filename):
os.unlink(os.path.join(path, filename))