config management repository for all servers operated or managed by me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
275 B

from os.path import join
from pathlib import Path
from bundlewrap.utils import error_context
groups = {}
for group in Path(join(repo_path, "groups")).rglob("*.py"):
with error_context(filename=str(group)):
with open(group, 'r') as f:
exec(f.read())