Minor bug fix

This commit is contained in:
stamparm 2013-04-19 15:40:25 +02:00
parent 6e0aaafdea
commit 0d92145fc6

View File

@ -627,7 +627,7 @@ def getDocRoot():
docRoot = "%s%s" % (absFilePath.split(_)[0], _) docRoot = "%s%s" % (absFilePath.split(_)[0], _)
break break
if pagePath in absFilePath: if pagePath and pagePath in absFilePath:
docRoot = absFilePath.split(pagePath)[0] docRoot = absFilePath.split(pagePath)[0]
if windowsDriveLetter: if windowsDriveLetter:
docRoot = "%s/%s" % (windowsDriveLetter, ntToPosixSlashes(docRoot)) docRoot = "%s/%s" % (windowsDriveLetter, ntToPosixSlashes(docRoot))