get_data_directory()

Return the directory where data files should reside.

Source code in ribbon/config.py
38
39
40
41
42
43
44
def get_data_directory():
    """Return the directory where data files should reside."""
    data_dir = os.environ.get(RIBBON_TASKS_ENV_VAR, str(DEFAULT_TASKS_DIR))
    # double check - is it set to an empty string?
    if data_dir.strip() == "":
        data_dir = str(DEFAULT_TASKS_DIR)
    return data_dir