Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0d31a commit 494e014Copy full SHA for 494e014
1 file changed
lib/core/common.py
@@ -236,7 +236,7 @@ def getDocRoot():
236
absFilePathWin = None
237
238
if re.match("[A-Za-z]:([\\/][\w.\\/]*)?", absFilePath):
239
- absFilePathWin = absFilePath
+ absFilePathWin = absFilePath.replace("/", "\\")
240
absFilePath = absFilePath[2:].replace("\\", "/")
241
242
if pagePath in absFilePath:
@@ -282,7 +282,7 @@ def getDirs():
282
283
for absFilePath in kb.absFilePaths:
284
if absFilePath:
285
- directories.add(os.path.dirname(absFilePath))
+ directories.add(directoryPath(absFilePath))
286
else:
287
warnMsg = "unable to retrieve any web server path"
288
logger.warn(warnMsg)
0 commit comments