mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix case-insensitive plugin loading if a plugin is in two directories.
This commit is contained in:
parent
e52db064ca
commit
8652c683ab
@ -56,7 +56,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
||||
if name not in files:
|
||||
search = lambda x: re.search(r'(?i)^%s$' % (name,), x)
|
||||
matched_names = list(filter(search, files))
|
||||
if len(matched_names) == 1:
|
||||
if len(matched_names) >= 1:
|
||||
name = matched_names[0]
|
||||
else:
|
||||
raise ImportError(name)
|
||||
|
Loading…
Reference in New Issue
Block a user