Modular server-side actions (squash merge)

This commit is contained in:
Michael DeHaan 2012-09-06 18:57:04 -04:00
parent 975c323e39
commit 633e513a65
10 changed files with 451 additions and 216 deletions

View file

@ -485,6 +485,8 @@ def filter_leading_non_json_lines(buf):
def import_plugins(directory):
modules = {}
for path in glob.glob(os.path.join(directory, '*.py')):
if path.startswith("_"):
continue
name, ext = os.path.splitext(os.path.basename(path))
if not name.startswith("_"):
modules[name] = imp.load_source(name, path)