def find_in_path(name, path):
<EOL>for dir in path.split(os.pathsep):<EOL><INDENT>binpath = os.path.join(dir, name)<EOL>if os.path.exists(binpath):<EOL><INDENT>return os.path.abspath(binpath)<EOL><DEDENT><DEDENT>return None<EOL>
Find a file in a search path