import json


env_file = "env.json"
info = {"music_home": ""}


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print("Error parsing environment file!")
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input("Enter value for %s: " % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)

    updated_environment = wizard(definition)
    save(env_file, updated_environment)

    return updated_environment

print(get_environment())

a8de204ea32edd8cfc76ed459535a17d59790bf7
<mask token>


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print('Error parsing environment file!')
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input('Enter value for %s: ' % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)
    updated_environment = wizard(definition)
    save(env_file, updated_environment)
    return updated_environment


<mask token>

<mask token>


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print('Error parsing environment file!')
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input('Enter value for %s: ' % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)
    updated_environment = wizard(definition)
    save(env_file, updated_environment)
    return updated_environment


print(get_environment())

<mask token>
env_file = 'env.json'
info = {'music_home': ''}


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print('Error parsing environment file!')
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input('Enter value for %s: ' % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)
    updated_environment = wizard(definition)
    save(env_file, updated_environment)
    return updated_environment


print(get_environment())

import json
env_file = 'env.json'
info = {'music_home': ''}


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print('Error parsing environment file!')
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input('Enter value for %s: ' % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)
    updated_environment = wizard(definition)
    save(env_file, updated_environment)
    return updated_environment


print(get_environment())

import json


env_file = "env.json"
info = {"music_home": ""}


def save(file, environment):
    f = open(file, 'w')
    f.write(json.dumps(environment))
    f.close()


def load_json(file):
    with open(file) as json_file:
        try:
            json_data = json.load(json_file)
        except ValueError:
            print("Error parsing environment file!")
            return {}
        return json_data


def load_environment():
    file = env_file
    try:
        env = load_json(file)
    except IOError:
        f = open(file, 'w')
        f.close()
        env = {}
    return env


def wizard(environment):
    new_definition = environment
    for key, value in environment.items():
        if not value:
            new_value = input("Enter value for %s: " % key)
            new_definition[key] = new_value
    return new_definition


def get_environment():
    definition = info
    environment = load_environment()
    definition.update(environment)

    updated_environment = wizard(definition)
    save(env_file, updated_environment)

    return updated_environment

print(get_environment())
