Add plugin hook to modify config.yaml post install

This commit is contained in:
yuvipanda
2018-08-11 01:19:51 -07:00
parent d12345e72a
commit 841c25e1bd
2 changed files with 49 additions and 9 deletions

View File

@@ -30,4 +30,17 @@ def tljh_extra_apt_packages():
These will be installed before additional pip or conda packages.
"""
pass
@hookspec
def tljh_config_post_install(config):
"""
Modify on-disk tljh-config after installation.
config is a dict-like object that should be modified
in-place. The contents of the on-disk config.yaml will
be the serialized contents of config, so try to not
overwrite anything the user might have explicitly set.
"""
pass