- 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
0.5
Cyril Jaquier 2005-07-15 14:11:21 +00:00
parent 3b154baae5
commit 8e43d98ca4
1 changed files with 4 additions and 3 deletions

View File

@ -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