Make tools cope with no-extension headers

Treat files with no extension as headers, if they are in the cxxsupport
folder.
pull/11039/head
Kevin Bracey 2019-07-12 16:19:42 +03:00
parent 7c849cb664
commit 6fc767dc71
1 changed files with 4 additions and 2 deletions

View File

@ -524,8 +524,10 @@ class Resources(object):
return
_, ext = splitext(file_path)
file_type = self._EXT.get(ext.lower())
if ext == "" and "cxxsupport" in fake_path:
file_type = FileType.HEADER
else:
file_type = self._EXT.get(ext.lower())
self.add_file_ref(file_type, fake_path, file_path)
if file_type == FileType.HEADER:
for name, path in self._all_parents(file_path, base_path, into_path):