Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf92cff0

Browse files
committed
Handle path properly
1 parent3b82ef2 commitf92cff0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@
4141
forfnameinfiles:
4242
iffname=='README.rst'androot=='.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)

[8]ページ先頭

©2009-2025 Movatter.jp