def pipewelder_configs(filename=None, defaults=None):
    if filename is None:
        data = {"pipewelder": {}}
        dirname = os.path.abspath('.')
    else:
        dirname = os.path.dirname(os.path.abspath(filename))
        data = util.load_json(filename)
    defaults = defaults or {}
    data_defaults = data.get('defaults', {})
    defaults = dict(list(CONFIG_DEFAULTS.items()) +
                    list(data_defaults.items()) +
                    list(defaults.items()))
    outputs = {}
    for name in data:
        if name == 'defaults':
            continue
        this_config = dict(list(defaults.items()) +
                           list(data[name].items()))
        dirs = []
        with util.cd(dirname):
            for entry in this_config['dirs']:
                for item in glob(entry):
                    if os.path.exists(os.path.join(item, 'values.json')):
                        dirs.append(item)
        outputs[name] = {
            "name": name,
            "dirs": dirs,
            "region": this_config['region'],
            "template": this_config['template'],
            "values": this_config['values'],
        }
    return outputs
alternate: django-admin builtin commands fail if settings file (from environment) doesn't exist
dataset/ETHPy150Open SimpleFinance/pipewelder/pipewelder/cli.py/pipewelder_configs--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_scripts/tests.py/DjangoAdminMultipleSettings.test_builtin_with_bad_environment