]> granicus.if.org Git - python/commitdiff
Exclude non-default VENVDIR in Doc builds (#3974) (#3975)
authorNed Deily <nad@python.org>
Thu, 12 Oct 2017 20:21:17 +0000 (16:21 -0400)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2017 20:21:17 +0000 (16:21 -0400)
Doc/conf.py

index d4ee50de7db97b2e61d1136abab6c350b38b035c..f7073d116a48bf3d63b780ebd88b0f26dd184fa6 100644 (file)
@@ -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