Commit 2bf9a92b by Michael DeHaan

Don't load plugins starting with "_".

parent 6fb1884a
......@@ -486,7 +486,8 @@ def import_plugins(directory):
modules = {}
for path in glob.glob(os.path.join(directory, '*.py')):
name, ext = os.path.splitext(os.path.basename(path))
modules[name] = imp.load_source(name, path)
if not name.startswith("_"):
modules[name] = imp.load_source(name, path)
return modules
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment