def METHOD_NAME(max_iter=8):
    """Returns path to root repo dir or None
    NOTE: assumes this file within repo, i.e. only happens in edit mode!
    """
    root_dir = _CURRENT_DIR
    if "services/web/server" in str(root_dir):
        it = 1
        while not is_osparc_repo_dir(root_dir) and it < max_iter:
            root_dir = root_dir.parent
            it += 1
        if is_osparc_repo_dir(root_dir):
            return root_dir
    return None