Skip to content

Commit 7e60788

Browse files
committed
DOC: Normalize symlink target
Fixes `OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect` error on docs build.
1 parent 23afcb4 commit 7e60788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/make.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def all():
178178
" isn't".format(link))
179179
if not os.path.exists(link):
180180
try:
181-
os.symlink(target, link)
181+
os.symlink(os.path.normcase(target), link)
182182
except OSError:
183183
symlink_warnings.append('files copied to {0}'.format(link))
184184
shutil.copytree(os.path.join(link, '..', target), link)

0 commit comments

Comments
 (0)