def LocateOptionalFileName(fileName, searchPaths=None):
 try:
  return LocateFileName(fileName, searchPaths)
 except KeyboardInterrupt:
  return None

def LocateOptionalFileName ( fileName , searchPaths = None ) : try : return LocateFileName ( fileName , searchPaths ) except KeyboardInterrupt : return None
like locatefilename .