From cfe2da0195180e8b909034ba5aabc5620db4ca88 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 8 Feb 2011 00:13:39 +0000 Subject: [PATCH] Minor fix --- lib/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 30beca713..2e86938ef 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -37,8 +37,8 @@ from xml.dom import minidom from xml.sax import parse from extra.cloak.cloak import decloak +from extra.magic import magic from extra.odict.odict import OrderedDict -from lib.contrib import magic from lib.core.data import conf from lib.core.data import dbmsDict from lib.core.data import kb @@ -540,7 +540,7 @@ def getDocRoot(): message = "please provide the web server document root " message += "[%s]: " % ",".join(root for root in defaultDocRoot) - inputDocRoot = readInput(message, default=defaultDocRoot) + inputDocRoot = readInput(message, default=defaultDocRoot[0]) if inputDocRoot: if isinstance(inputDocRoot, basestring):