summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-10-12 20:04:57 (GMT)
committerGitHub <noreply@github.com>2017-10-12 20:04:57 (GMT)
commit6129250b74fc480a614e6db30b5e4fc8d0ff6835 (patch)
treed13a45913a7ded20413a442e0c4f562e443f7952
parentde072100775cc29e6cd93a75466cecbd1086f258 (diff)
downloadcpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.zip
cpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.tar.gz
cpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.tar.bz2
Exclude non-default VENVDIR in Doc builds (#3974)
-rw-r--r--Doc/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index c4ae16a..aaee983 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -38,7 +38,8 @@ highlight_language = 'python3'
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