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

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/make.py

Lines changed: 1 addition & 1 deletion
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)