mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Uh oh, we're getting repeats. Let's fix this.
This commit is contained in:
parent
2eedf7dfad
commit
45d3d63d4b
@ -573,8 +573,12 @@ utils.transactionalFile = transactionalFile
|
|||||||
|
|
||||||
class PluginDirectories(registry.CommaSeparatedListOfStrings):
|
class PluginDirectories(registry.CommaSeparatedListOfStrings):
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
v = registry.CommaSeparatedListOfStrings.__call__(self)
|
v = registry.CommaSeparatedListOfStrings.__call__(self)[:] # Copy!
|
||||||
return v + [_srcDir, _pluginsDir]
|
if _srcDir not in v:
|
||||||
|
v.append(_srcDir)
|
||||||
|
if _pluginsDir not in v:
|
||||||
|
v.append(_pluginsDir)
|
||||||
|
return v
|
||||||
|
|
||||||
registerGlobalValue(supybot.directories, 'plugins',
|
registerGlobalValue(supybot.directories, 'plugins',
|
||||||
PluginDirectories(['plugins'], """Determines what directories the bot will
|
PluginDirectories(['plugins'], """Determines what directories the bot will
|
||||||
|
Loading…
Reference in New Issue
Block a user