def load_config(path):

    path = canonical_path(path)
    is_default = path == canonical_path(DEFAULT_CONFIG_PATH)
    exists = os.path.exists(path)

    # if it's the default config path and it doesn't exist, just return an
    # empty config
    if is_default and not exists:
        return ZincClientConfig()

    if not exists:
        sys.exit("File not found: %s" % (path))

    return ZincClientConfig.from_path(path)
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/cli.py/load_config/original