Commit 212f4842 authored by Matt Harbison's avatar Matt Harbison
Browse files

adjust `sphinx` detection to support running in a virtualenv

parent 9bd188ab6d7e
......@@ -743,7 +743,13 @@ def verify_doc_env():
global installenv
path = installenv.get('PATH', '').split(os.pathsep)
scrpath = os.path.dirname(sys.executable) + os.sep + 'Scripts'
scrpath = os.path.dirname(sys.executable)
# In a virtualenv, python.exe is also in Scripts. In the main install, it
# is next to it.
if 'VIRTUAL_ENV' not in installenv:
srcpath += os.sep + 'Scripts'
# Find HTML Help compiler, add to path
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment