Add normpath in _asciidoc_fallback_path

See #4576
This commit is contained in:
Florian Bruhin 2019-02-16 00:46:41 +01:00
parent 6ca6271170
commit 6519ac5cca

View File

@ -32,6 +32,7 @@ import textwrap
import urllib
import collections
import base64
import os.path
try:
import secrets
@ -348,7 +349,7 @@ def _asciidoc_fallback_path(html_path):
for path in asciidoc_paths:
try:
return utils.read_file(path)
return utils.read_file(os.path.normpath(path))
except OSError:
pass