This commit is contained in:
Miroslav Stampar 2010-02-25 16:38:39 +00:00
parent 0913d700a8
commit d95a8850c8

View File

@ -249,6 +249,10 @@ def getDocRoot(webApi=None):
index = absFilePath.index(pagePath) index = absFilePath.index(pagePath)
docRoot = absFilePath[:index] docRoot = absFilePath[:index]
if len(docRoot) == 0:
docRoot = None
continue
if absFilePathWin: if absFilePathWin:
docRoot = "C:/%s" % ntToPosixSlashes(docRoot) docRoot = "C:/%s" % ntToPosixSlashes(docRoot)