From 22c0c7fcce6fe0bef2f5675ded4f18248a6cfc8c Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 3 Aug 2013 16:06:23 +0200 Subject: [PATCH] Fix supybot-test's option --exclude-plugins for patterns. --- scripts/supybot-test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/supybot-test b/scripts/supybot-test index 96f6e28e1..f3ab6ab43 100644 --- a/scripts/supybot-test +++ b/scripts/supybot-test @@ -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: