MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / load_config

Function load_config

mssqlcli/config.py:20–26  ·  view source on GitHub ↗
(usr_cfg, def_cfg=None)

Source from the content-addressed store, hash-verified

18
19
20def load_config(usr_cfg, def_cfg=None):
21 cfg = ConfigObj()
22 cfg.merge(ConfigObj(def_cfg, interpolation=False))
23 cfg.merge(ConfigObj(expanduser(usr_cfg), interpolation=False, encoding='utf-8'))
24 cfg.filename = expanduser(usr_cfg)
25
26 return cfg
27
28
29def ensure_dir_exists(path):

Callers 2

upgrade_configFunction · 0.85
get_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected