bundlewrap/groups.py

11 lines
275 B
Python
Raw Permalink Normal View History

2020-02-29 12:30:51 +00:00
from os.path import join
from pathlib import Path
from bundlewrap.utils import error_context
2020-02-29 12:30:51 +00:00
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())