def find_exe(env_dir, name):
if platform.system() == "<STR_LIT>":<EOL><INDENT>name = name + "<STR_LIT>"<EOL><DEDENT>exe_name = os.path.join(env_dir, name)<EOL>if not os.path.exists(exe_name):<EOL><INDENT>exe_name = os.path.join(env_dir, "<STR_LIT>", name)<EOL>if not os.path.exists(exe_name):<EOL><INDENT>exe_name = os.path.join(env_dir, "<STR_LIT>", name)<EOL>if not os.path.exists(exe_name):<EOL><INDENT>return None<EOL><DEDENT><DEDENT><DEDENT>return exe_name<EOL>
Finds a exe with that name in the environment path