def exists(file, paths):
    """check if the given file exists in one of the given paths"""
    import os, glob
    for path in paths:
        p = os.path.join(path, file)
        if glob.glob(p):
            return True
        continue
    return False
