def _get_info_files(self, package_dir, parent_path, parent_package=None):
from glob import glob<EOL>files = glob(os.path.join(parent_path, package_dir, '<STR_LIT>'))<EOL>for info_file in glob(os.path.join(parent_path, package_dir, '<STR_LIT>')):<EOL><INDENT>if info_file[:-<NUM_LIT:1>] not in files:<EOL><INDENT>files.append(info_file)<EOL><DEDENT><DEDENT>info_files = []<EOL>for info_file in files:<EOL><INDENT>package_name = os.path.dirname(info_file[len(parent_path)+<NUM_LIT:1>:]).replace(os.sep, '<STR_LIT:.>')<EOL>if parent_package:<EOL><INDENT>package_name = parent_package + '<STR_LIT:.>' + package_name<EOL><DEDENT>info_files.append((package_name, info_file))<EOL>info_files.extend(self._get_info_files('<STR_LIT:*>',<EOL>os.path.dirname(info_file),<EOL>package_name))<EOL><DEDENT>return info_files<EOL>
Return list of (package name,info.py file) from parent_path subdirectories.