Fix supybot-test's option --exclude-plugins for patterns.

This commit is contained in:
Valentin Lorentz 2013-08-03 16:06:23 +02:00
parent ce14329731
commit 22c0c7fcce

View File

@ -157,7 +157,11 @@ if __name__ == '__main__':
for pluginDir in options.pluginsDirs: for pluginDir in options.pluginsDirs:
for name in glob.glob(os.path.join(pluginDir, '*')): for name in glob.glob(os.path.join(pluginDir, '*')):
#print '***', name #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) args.append(name)
if not args: if not args: