[Python-checkins] Exclude non-default VENVDIR in Doc builds (#3974)

Ned Deily webhook-mailer at python.org
Thu Oct 12 16:05:00 EDT 2017


https://github.com/python/cpython/commit/6129250b74fc480a614e6db30b5e4fc8d0ff6835
commit: 6129250b74fc480a614e6db30b5e4fc8d0ff6835
branch: master
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2017-10-12T16:04:57-04:00
summary:

Exclude non-default VENVDIR in Doc builds (#3974)

files:
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index c4ae16a2054..aaee983984b 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -38,7 +38,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



More information about the Python-checkins mailing list