BF: use os.path.join to generate full path - fixes includes in configs given local filename

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@779 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
Yaroslav Halchenko 2011-06-27 03:40:16 +00:00
parent b9b9e42223
commit afee14e778

View file

@ -86,7 +86,7 @@ after = 1.conf
if os.path.isabs(newResource):
r = newResource
else:
r = "%s/%s" % (resourceDir, newResource)
r = os.path.join(resourceDir, newResource)
if r in seen:
continue
s = seen + [resource]