Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 494e014

Browse files
committed
minor update
1 parent 8b0d31a commit 494e014

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def getDocRoot():
236236
absFilePathWin = None
237237

238238
if re.match("[A-Za-z]:([\\/][\w.\\/]*)?", absFilePath):
239-
absFilePathWin = absFilePath
239+
absFilePathWin = absFilePath.replace("/", "\\")
240240
absFilePath = absFilePath[2:].replace("\\", "/")
241241

242242
if pagePath in absFilePath:
@@ -282,7 +282,7 @@ def getDirs():
282282

283283
for absFilePath in kb.absFilePaths:
284284
if absFilePath:
285-
directories.add(os.path.dirname(absFilePath))
285+
directories.add(directoryPath(absFilePath))
286286
else:
287287
warnMsg = "unable to retrieve any web server path"
288288
logger.warn(warnMsg)

0 commit comments

Comments
 (0)