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

Function config_location

mssqlcli/config.py:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def config_location():
11 if platform.system() == 'Windows':
12 return os.getenv('LOCALAPPDATA') + '\\dbcli\\mssqlcli\\'
13
14 if 'XDG_CONFIG_HOME' in os.environ:
15 return '%s/mssqlcli/' % expanduser(os.environ['XDG_CONFIG_HOME'])
16
17 return expanduser('~/.config/mssqlcli/')
18
19
20def load_config(usr_cfg, def_cfg=None):

Callers 7

initialize_loggingMethod · 0.90
runMethod · 0.90
get_configFunction · 0.85
get_casing_fileFunction · 0.85
create_parserFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected