add override option
This commit is contained in:
@@ -134,7 +134,8 @@ protoreplace:
|
|||||||
|
|
||||||
Beschlussvorlage"
|
Beschlussvorlage"
|
||||||
|
|
||||||
sendmail: ["/usr/bin/msmtp"]
|
sendmail: ["/usr/sbin/sendmail"]
|
||||||
|
override_file: "@import(personal.conf:override_file)"
|
||||||
|
|
||||||
|
|
||||||
# vim: filetype=yaml
|
# vim: filetype=yaml
|
||||||
|
|||||||
@@ -204,6 +204,9 @@ def do_imports(entry):
|
|||||||
def get_config(f):
|
def get_config(f):
|
||||||
raw_config = yaml.safe_load(open(f))
|
raw_config = yaml.safe_load(open(f))
|
||||||
config = do_imports(raw_config)
|
config = do_imports(raw_config)
|
||||||
|
if "override_file" in config:
|
||||||
|
override_config = yaml.safe_load(open(config["override_file"]))
|
||||||
|
config.update(override_config)
|
||||||
return config
|
return config
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user