source
SherlockConfig
def SherlockConfig(
priv:str=''
)->None:
source
save_cfg
def save_cfg(
cfg:dict, path:NoneType=None
):
Save config to file
source
get_cfg
def get_cfg(
path:NoneType=None
):
Get config from XDG config dir, creating if needed
test_dir = 'tmp_test'
cfg_path = Path(test_dir)/'sherlock.conf'
cfg_path
Path('tmp_test/sherlock.conf')
save_cfg({'priv': '912j3i9x...'}, cfg_path)
get_cfg(path=cfg_path)