https://github.com/python/cpython/commit/86f37b5225f992e466b1d2a7d0a05ceea6ea5450 commit: 86f37b5225f992e466b1d2a7d0a05ceea6ea5450 branch: 3.6 author: Ned Deily <nad at python.org> committer: GitHub <noreply at github.com> date: 2017年10月12日T16:21:17-04:00 summary: Exclude non-default VENVDIR in Doc builds (#3974) (#3975) files: M Doc/conf.py diff --git a/Doc/conf.py b/Doc/conf.py index d4ee50de7db..f7073d116a4 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -37,7 +37,8 @@ needs_sphinx = '1.2' # Ignore any .rst files in the venv/ directory. -exclude_patterns = ['venv/*', 'README.rst'] +venvdir = os.getenv('VENVDIR', 'venv') +exclude_patterns = [venvdir+'/*', 'README.rst'] # Options for HTML output