Skip to content

Commit f92cff0

Browse files
committed
Handle path properly
1 parent 3b82ef2 commit f92cff0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

conf.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@
4141
for fname in files:
4242
if fname == 'README.rst' and root == '.overrides':
4343
continue
44-
destroot = root.replace('.overrides/', '')
45-
os.system(f'ln -nfs `pwd`/{root}/{fname} cpython/Doc/{destroot}/{fname}')
44+
destroot = root.replace('.overrides', '').lstrip('/')
45+
outputdir = os.path.join(
46+
'cpython',
47+
'Doc',
48+
destroot,
49+
fname,
50+
)
51+
os.system(f'ln -nfs `pwd`/{root}/{fname} {outputdir}')
4652

4753
gettext_compact = False
4854
locale_dirs = ['../locales', 'cpython/locales'] # relative to the sourcedir

0 commit comments

Comments
 (0)