Let's remove stupid directories.

This commit is contained in:
Jeremy Fincher 2004-07-28 02:58:10 +00:00
parent b9507c9607
commit f606c43753

View File

@ -71,7 +71,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
try:
files.extend(os.listdir(dir))
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)
try:
index = loweredFiles.index(name.lower()+'.py')