From d95a8850c8f3d2abe8df929dd8424ac488115e4f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 25 Feb 2010 16:38:39 +0000 Subject: [PATCH] fix --- lib/core/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/common.py b/lib/core/common.py index 06291130c..2496c9009 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -249,6 +249,10 @@ def getDocRoot(webApi=None): index = absFilePath.index(pagePath) docRoot = absFilePath[:index] + if len(docRoot) == 0: + docRoot = None + continue + if absFilePathWin: docRoot = "C:/%s" % ntToPosixSlashes(docRoot)