From 8e43d98ca410f0a1f6c1977c78a2e46a33d3e3e4 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Fri, 15 Jul 2005 14:11:21 +0000 Subject: [PATCH] - Moved path.append() before importing log4py git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@141 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- fail2ban | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fail2ban b/fail2ban index 33c7d364..abc9f9e2 100755 --- a/fail2ban +++ b/fail2ban @@ -28,6 +28,10 @@ __license__ = "GPL" from sys import exit, path +# Appends our own modules path. Added before log4py import +# because log4py could be distributed with Fail2Ban. +path.append("/usr/lib/fail2ban") + # Checks for required libs # Checks if log4py is present. try: @@ -36,9 +40,6 @@ except: print "log4py is needed (see README)" exit(-1) -# Appends our own modules path -path.append('/usr/lib/fail2ban') - # Now we can import our module import fail2ban