from pathlib import Path
import json


def Load_User_File(github_user):
    """
    Load the contents of a JSON file
    Keyword arguments:
    github_user -- name of the file in the form <username>.json
    """
    GITHUB_USER_PATH= "scripts/files/users/%s" % github_user
    my_file = Path(GITHUB_USER_PATH)
    # Are results cached ?
    if my_file.exists():
        print ("Cached : ", GITHUB_USER_PATH)
        with open( GITHUB_USER_PATH, "r") as input_file:
            json_response = json.load(input_file)
        return json_response