def scan_path(executable="<STR_LIT>"):
for path in os.environ.get("<STR_LIT>", "<STR_LIT>").split("<STR_LIT::>"):<EOL><INDENT>path = os.path.abspath(path)<EOL>executable_path = os.path.join(path, executable)<EOL>if os.path.exists(executable_path):<EOL><INDENT>return executable_path<EOL><DEDENT><DEDENT>
Scan the path for a binary.