Don't load plugins starting with "_".

This commit is contained in:
Michael DeHaan 2012-09-06 18:46:15 -04:00
commit 2bf9a92bb6

View file

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