def __find_source_files(self):
for dir_path, _, files in os.walk(self._source_directory):<EOL><INDENT>for name in files:<EOL><INDENT>if name.lower().endswith(self._source_file_extension):<EOL><INDENT>basename = os.path.splitext(os.path.basename(name))[<NUM_LIT:0>]<EOL>relative_path = os.path.relpath(os.path.join(dir_path, name))<EOL>if basename in self._source_file_names:<EOL><INDENT>self._io.error("<STR_LIT>".<EOL>format(self._source_file_names[basename], relative_path))<EOL>self.error_file_names.add(relative_path)<EOL><DEDENT>else:<EOL><INDENT>self._source_file_names[basename] = relative_path<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Searches recursively for all source files in a directory.