8000 Doc: Keep the venv/* exclude pattern. (GH-15229) · python/cpython@73e0549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73e0549

Browse files
JulienPalardned-deily
authored andcommitted
Doc: Keep the venv/* exclude pattern. (GH-15229)
In case it has been previously created.
1 parent da27d9b commit 73e0549

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
needs_sphinx = '1.8'
4949

5050
# Ignore any .rst files in the venv/ directory.
51-
venvdir = os.getenv('VENVDIR', 'venv')
52-
exclude_patterns = [venvdir+'/*', 'README.rst']
51+
exclude_patterns = ['venv/*', 'README.rst']
52+
venvdir = os.getenv('VENVDIR')
53+
if venvdir is not None:
54+
exclude_patterns.append(venvdir + '/*')
5355

5456
# Disable Docutils smartquotes for several translations
5557
smartquotes_excludes = {

0 commit comments

Comments
 (0)
0