mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Let's remove stupid directories.
This commit is contained in:
parent
b9507c9607
commit
f606c43753
@ -71,7 +71,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
|||||||
try:
|
try:
|
||||||
files.extend(os.listdir(dir))
|
files.extend(os.listdir(dir))
|
||||||
except EnvironmentError: # OSError, IOError superclass.
|
except EnvironmentError: # OSError, IOError superclass.
|
||||||
log.warning('Invalid plugin directory: %s', dir)
|
log.warning('Invalid plugin directory: %r; removing.', dir)
|
||||||
|
conf.supybot.directories.plugins().remove(dir)
|
||||||
loweredFiles = map(str.lower, files)
|
loweredFiles = map(str.lower, files)
|
||||||
try:
|
try:
|
||||||
index = loweredFiles.index(name.lower()+'.py')
|
index = loweredFiles.index(name.lower()+'.py')
|
||||||
|
Loading…
Reference in New Issue
Block a user