From: Ned Deily Date: Thu, 12 Oct 2017 20:04:57 +0000 (-0400) Subject: Exclude non-default VENVDIR in Doc builds (#3974) X-Git-Tag: v3.7.0a2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6129250b74fc480a614e6db30b5e4fc8d0ff6835;p=thirdparty%2FPython%2Fcpython.git Exclude non-default VENVDIR in Doc builds (#3974) --- diff --git a/Doc/conf.py b/Doc/conf.py index c4ae16a20543..aaee983984bc 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