def __upsearch(file_name, dir_name):

    if isfile("%s/%s" % (dir_name, file_name)):
        return dir_name
    else:
        new_dir = abspath(join(dir_name, pardir))
        if dir_name == new_dir:
            return None
        return __upsearch(file_name, new_dir)
Search upward for file
dataset/ETHPy150Open jakev/dtf/src/dtf/properties.py/__upsearch