banned/src/roles/__init__.py
skizzerz 10f94de9b3 Initial work splitting off roles
For now, seer and wild child are done. There are some aspects of those
roles that are still incomplete, namely:
- sorcerer and alpha wolf handling of seer/oracle/augur is still in
  wolfgame.py instead of via events
- wild child does not modify !stats
2016-08-08 19:21:05 -05:00

17 lines
381 B
Python

# Imports all role definitions
import os.path
import glob
import importlib
path = os.path.dirname(os.path.abspath(__file__))
search = os.path.join(path, "*.py")
for f in glob.iglob(search):
f = os.path.basename(f)
n, _ = os.path.splitext(f)
if f == "__init__.py":
continue
importlib.import_module("." + n, package="src.roles")
# vim: set sw=4 expandtab: