Do not sort module lists.
This commit is contained in:
parent
be1694592e
commit
79795115f0
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ def get_importable_modules(folder):
|
||||||
@return module names
|
@return module names
|
||||||
@rtype: iterator of string
|
@rtype: iterator of string
|
||||||
"""
|
"""
|
||||||
for fname in sorted(os.listdir(folder)):
|
for fname in os.listdir(folder):
|
||||||
if fname.endswith('.py') and not fname.startswith('_'):
|
if fname.endswith('.py') and not fname.startswith('_'):
|
||||||
yield fname[:-3]
|
yield fname[:-3]
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ def get_module_plugins(module, classobj):
|
||||||
names = module.__all__
|
names = module.__all__
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
names = [x for x in vars(module) if not x.startswith('_')]
|
names = [x for x in vars(module) if not x.startswith('_')]
|
||||||
for name in sorted(names):
|
for name in names:
|
||||||
try:
|
try:
|
||||||
obj = getattr(module, name)
|
obj = getattr(module, name)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in a new issue