From 0d92145fc641854fd5bff7627c98e990c700866c Mon Sep 17 00:00:00 2001 From: stamparm Date: Fri, 19 Apr 2013 15:40:25 +0200 Subject: [PATCH] Minor bug fix --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 217a12bb1..d6258e22f 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -627,7 +627,7 @@ def getDocRoot(): docRoot = "%s%s" % (absFilePath.split(_)[0], _) break - if pagePath in absFilePath: + if pagePath and pagePath in absFilePath: docRoot = absFilePath.split(pagePath)[0] if windowsDriveLetter: docRoot = "%s/%s" % (windowsDriveLetter, ntToPosixSlashes(docRoot))