mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Misc: Fix search of unloaded plugins if Misc is not in supybot install dir.
This commit is contained in:
parent
68bcffb57b
commit
e2c1adda7f
@ -164,8 +164,12 @@ class Misc(callbacks.Plugin):
|
||||
return
|
||||
if not cb:
|
||||
if unloaded:
|
||||
# We were using the path of Misc + .. to detect the install
|
||||
# directory. However, it fails if Misc is not in the
|
||||
# installation directory for some reason, so we use a
|
||||
# supybot module.
|
||||
installedPluginsDirectory = os.path.join(
|
||||
os.path.dirname(__file__), '..')
|
||||
os.path.dirname(conf.__file__), 'plugins')
|
||||
plugins = getPluginsInDirectory(installedPluginsDirectory)
|
||||
for directory in conf.supybot.directories.plugins()[:]:
|
||||
plugins.extend(getPluginsInDirectory(directory))
|
||||
|
Loading…
Reference in New Issue
Block a user