def FindAppPath(appName, knownFileName, searchPaths):
    # Look in the first path.
    import regutil, string, os
    regPath = regutil.GetRegisteredNamedPath(appName)
    if regPath:
        pathLook = string.split(regPath,";")[0]
    if regPath and FileExists(os.path.join(pathLook, knownFileName)):
        return None # The currently registered one is good.
    # Search down the search paths.
    for pathLook in searchPaths:
        if FileExists(os.path.join(pathLook, knownFileName)):
            # Found it
            return os.path.abspath(pathLook)
    raise error, "The file %s can not be located for application %s" % (knownFileName, appName)
convert coordinates.
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/scripts/regsetup.py/FindAppPath--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/BlatTest.py/Match.convertCoordinates