def collectFiles(path, files):
if not path.endswith(os.path.sep):<EOL><INDENT>path += os.path.sep<EOL><DEDENT>for item in os.listdir(path):<EOL><INDENT>if os.path.isdir(path + item):<EOL><INDENT>collectFiles(path + item, files)<EOL><DEDENT>if os.path.isfile(path + item) and item.endswith("<STR_LIT>"):<EOL><INDENT>if item.startswith("<STR_LIT>"):<EOL><INDENT>continue<EOL><DEDENT>files.append(os.path.abspath(path + item))<EOL>continue<EOL><DEDENT><DEDENT>
Collects python files