From 6129250b74fc480a614e6db30b5e4fc8d0ff6835 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 12 Oct 2017 16:04:57 -0400 Subject: [PATCH] Exclude non-default VENVDIR in Doc builds (#3974) --- Doc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/conf.py b/Doc/conf.py index c4ae16a205..aaee983984 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 -- 2.40.0