mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Fix supybot-test's option --exclude-plugins for patterns.
This commit is contained in:
parent
ce14329731
commit
22c0c7fcce
@ -157,7 +157,11 @@ if __name__ == '__main__':
|
||||
for pluginDir in options.pluginsDirs:
|
||||
for name in glob.glob(os.path.join(pluginDir, '*')):
|
||||
#print '***', name
|
||||
if name not in options.excludePlugins and os.path.isdir(name):
|
||||
print(repr(name))
|
||||
if not any(map(lambda x:name in x,
|
||||
map(glob.glob, options.excludePlugins))) and \
|
||||
os.path.isdir(name):
|
||||
print('foo')
|
||||
args.append(name)
|
||||
|
||||
if not args:
|
||||
|
Loading…
Reference in New Issue
Block a user