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 urllib
import collections import collections
import base64 import base64
import os.path
try: try:
import secrets import secrets
@ -348,7 +349,7 @@ def _asciidoc_fallback_path(html_path):
for path in asciidoc_paths: for path in asciidoc_paths:
try: try:
return utils.read_file(path) return utils.read_file(os.path.normpath(path))
except OSError: except OSError:
pass pass