config fix

git-svn-id: https://kippo.googlecode.com/svn/trunk@53 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster 2009-11-22 08:09:59 +00:00
parent 34257aa97b
commit 5d1a22dee6
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import os, time
from kippo.core.honeypot import HoneyPotCommand
from kippo.core.fs import *
from twisted.internet import reactor
import config
from kippo.core.config import config
commands = {}
@ -24,7 +24,7 @@ class command_cat(HoneyPotCommand):
f = self.fs.getfile(path)
realfile = self.fs.realfile(f,
'%s/%s' % (config.contents_path, path))
'%s/%s' % (config().contents_path, path))
if realfile:
f = file(realfile, 'rb')
self.write(f.read())