import json


def get_current_version_directory(top_dir):
    """
    The current version of the data parameters and models is
    kept in the current_version file in the top directory.

    This function reads this file and returns the
    current version directories.

    """

    f = open(top_dir + "current_version", "r")
    directories = json.load(f)
    f.close()

    return directories