MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / _load_config

Function _load_config

dwave/cloud/cli.py:239–245  ·  view source on GitHub ↗

Load from config_file, or create new with defaults.

(config_file: str)

Source from the content-addressed store, hash-verified

237 return config
238
239def _load_config(config_file: str) -> ConfigParser:
240 """Load from config_file, or create new with defaults."""
241
242 try:
243 return load_config_from_files([config_file])
244 except:
245 return get_default_config()
246
247def _write_config(config: ConfigParser, config_file: str):
248 """Write config to config_file."""

Callers 1

_config_createFunction · 0.85

Calls 2

load_config_from_filesFunction · 0.90
get_default_configFunction · 0.90

Tested by

no test coverage detected