From 52264f544e384e1dbc9edea3535c583f1562508d Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 14 Feb 2013 17:16:49 +0000 Subject: [PATCH] minor fix for Windows file paths, do not strip the windows drive letter --- lib/core/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 5d4cc68cc..0d6376a5a 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -619,11 +619,12 @@ def getDocRoot(): if any("/%s/" % _ in absFilePath for _ in GENERIC_DOC_ROOT_DIRECTORY_NAMES): for _ in GENERIC_DOC_ROOT_DIRECTORY_NAMES: _ = "/%s/" % _ + if _ in absFilePath: docRoot = "%s%s" % (absFilePath.split(_)[0], _) break - elif pagePath in absFilePath: + if pagePath in absFilePath: docRoot = absFilePath.split(pagePath)[0] if windowsDriveLetter: docRoot = "%s/%s" % (windowsDriveLetter, ntToPosixSlashes(docRoot))