From: Ned Deily Date: Thu, 12 Oct 2017 20:21:17 +0000 (-0400) Subject: Exclude non-default VENVDIR in Doc builds (#3974) (#3975) X-Git-Tag: v3.6.4rc1~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86f37b5225f992e466b1d2a7d0a05ceea6ea5450;p=python Exclude non-default VENVDIR in Doc builds (#3974) (#3975) --- diff --git a/Doc/conf.py b/Doc/conf.py index d4ee50de7d..f7073d116a 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -37,7 +37,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