From d757e4ae1c883c36d513585babbc2ca2b290c390 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 17 Nov 2010 09:46:04 +0000 Subject: [PATCH] bug fix (when user manually sets web root, that same directory should be used as one of potentionaly default dirs) --- lib/core/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/common.py b/lib/core/common.py index 0fe44bdf3..9560598f2 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -369,6 +369,9 @@ def getDirs(webApi=None): else: defaultDirs = ["/var/www/"] + if kb.docRoot and kb.docRoot not in defaultDirs: + defaultDirs.append(kb.docRoot) + if kb.absFilePaths: infoMsg = "retrieved web server full paths: " infoMsg += "'%s'" % ", ".join(path for path in kb.absFilePaths)