def find_mirteFile(name, extra_path=None):
extra_path = () if extra_path is None else extra_path<EOL>for bp in chain(extra_path, sys.path):<EOL><INDENT>pb = os.path.join(bp, name)<EOL>p = pb + FILE_SUFFIX<EOL>if os.path.exists(p):<EOL><INDENT>return os.path.abspath(p)<EOL><DEDENT>p = os.path.join(pb, DEFAULT_FILE)<EOL>if os.path.exists(p):<EOL><INDENT>return os.path.abspath(p)<EOL><DEDENT><DEDENT>raise ValueError("<STR_LIT>" % name)<EOL>
Resolves <name> to a path.  Uses <extra_path>