2473
2473
:param name: The base name of the executable.
2474
2474
:return: The path to the executable found or None.
2480
2476
if sys.platform == 'win32':
2481
2477
exts = os.environ.get('PATHEXT', '').split(os.pathsep)
2482
2478
exts = [ext.lower() for ext in exts]