aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-10-12 16:04:57 -0400
committerGitHub <noreply@github.com>2017-10-12 16:04:57 -0400
commit6129250b74fc480a614e6db30b5e4fc8d0ff6835 (patch)
treed13a45913a7ded20413a442e0c4f562e443f7952 /Doc/conf.py
parentbpo-30058: Fixed buffer overflow in select.kqueue.control(). (#1095) (diff)
downloadcpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.tar.gz
cpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.tar.bz2
cpython-6129250b74fc480a614e6db30b5e4fc8d0ff6835.zip
Exclude non-default VENVDIR in Doc builds (#3974)
Diffstat (limited to 'Doc/conf.py')
-rw-r--r--Doc/conf.py3
1 files changed, 2 insertions, 1 deletions
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 @@ 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