From 0ae932ba5e5e364e22392e1ecd2d72a75e427f62 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 5 Oct 2016 15:29:56 +0200 Subject: [PATCH] setup fix for python3, bypass directories (__pycache__) created after ignore command was tested --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b3645f01e..5754db493 100755 --- a/setup.py +++ b/setup.py @@ -205,7 +205,7 @@ setup( glob("config/filter.d/*.conf") ), ('/etc/fail2ban/filter.d/ignorecommands', - glob("config/filter.d/ignorecommands/*") + [p for p in glob("config/filter.d/ignorecommands/*") if isfile(p)] ), ('/etc/fail2ban/action.d', glob("config/action.d/*.conf") +