mirror of https://github.com/fail2ban/fail2ban
- 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-b1dcaea8d6050.5
parent
3b154baae5
commit
8e43d98ca4
7
fail2ban
7
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue