mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Be more lenient about non-existent pluginDirs.
This commit is contained in:
parent
dfadfe7e34
commit
e6ad1614f3
@ -57,7 +57,10 @@ def loadPluginModule(name):
|
||||
"""Loads (and returns) the module for the plugin with the given name."""
|
||||
files = []
|
||||
for dir in conf.pluginDirs:
|
||||
try:
|
||||
files.extend(os.listdir(dir))
|
||||
except EnvironmentError:
|
||||
debug.msg('Invalid plugin directory: %s' % dir, 'verbose')
|
||||
loweredFiles = map(str.lower, files)
|
||||
try:
|
||||
index = loweredFiles.index(name.lower()+'.py')
|
||||
|
Loading…
Reference in New Issue
Block a user