def LocateOptionalPath(fileName, searchPaths):
    try:
        return LocatePath(fileName, searchPaths)
    except KeyboardInterrupt:
        return None
Like LocatePath, but returns None if the user cancels.
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/scripts/regsetup.py/LocateOptionalPath