Skip to content

Commit aa82900

Browse files
committed
Use posix_path() when checking local links
Closes #166.
1 parent 6edd699 commit aa82900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nbsphinx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ def apply(self):
10731073
env.nbsphinx_files.setdefault(env.docname, []).append(file)
10741074
continue # We're done here
10751075

1076-
target_docname = os.path.normpath(
1077-
os.path.join(os.path.dirname(env.docname), target))
1076+
target_docname = nbconvert.filters.posix_path(os.path.normpath(
1077+
os.path.join(os.path.dirname(env.docname), target)))
10781078
if target_docname in env.found_docs:
10791079
if target_ext:
10801080
target = target_docname + target_ext

0 commit comments

Comments
 (0)