Commit 902183ac by Brian Harring

Enforce alphanumeric ordering for plugins grabbed via glob.

If this isn't done, it's left to directory ordering which can result
in indeterminent behaviour.
parent 0747d41e
......@@ -176,7 +176,9 @@ class PluginLoader(object):
''' instantiates all plugins with the same arguments '''
for i in self._get_paths():
for path in glob.glob(os.path.join(i, "*.py")):
matches = glob.glob(os.path.join(i, "*.py"))
matches.sort()
for path in matches:
name, ext = os.path.splitext(os.path.basename(path))
if name.startswith("_"):
continue
......
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