bundlewrap/groups.py
mwiegand 572e29e723 wip
2021-06-11 13:30:57 +02:00

9 lines
360 B
Python

from os import walk
from os.path import join, basename, splitext
for root, dirs, files in walk(join(repo_path, "groups")):
for filename in files:
if filename.endswith(".py"):
group = join(root, filename)
with open(group, 'r', encoding='utf-8') as f:
groups[splitext(basename(filename))[0]] = eval(f.read())