From 876e116b628f437f22b7b65f6bf9eb99d3399274 Mon Sep 17 00:00:00 2001 From: desaster Date: Sun, 22 Nov 2009 07:00:04 +0000 Subject: [PATCH] load fs.pickle location from config git-svn-id: https://kippo.googlecode.com/svn/trunk@49 951d7100-d841-11de-b865-b3884708a8e2 --- core/honeypot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/honeypot.py b/core/honeypot.py index 0e6f89f7..4e1468c2 100644 --- a/core/honeypot.py +++ b/core/honeypot.py @@ -219,14 +219,15 @@ class HoneyPotAvatar(avatar.ConchUser): class HoneyPotEnvironment(object): def __init__(self): + self.cfg = config() self.commands = {} import commands for c in commands.__all__: module = __import__('commands.%s' % c, globals(), locals(), ['commands']) self.commands.update(module.commands) - self.fs = pickle.load(file('fs.pickle')) - self.cfg = config() + self.fs = pickle.load(file( + self.cfg.get('honeypot', 'filesystem_file'))) class HoneyPotRealm: implements(portal.IRealm)