def alternative_release_path():

    if exists(utils.absolute_release_path()):
        current_release_path = run('readlink %s'
                % utils.absolute_release_path())
        if os.path.basename(current_release_path) == env.release_paths[0]:
            alternative = env.release_paths[1]
        else:
            alternative = env.release_paths[0]
        return alternative
    else:
        return env.release_paths[0]
Determine the release directory that is not currently in use.
dataset/ETHPy150Open bueda/ops/buedafab/deploy/release.py/alternative_release_path