Commit ba379119 authored by Matt Clarkson's avatar Matt Clarkson

Issue #51: Fix documentation to look for sphinx in Scripts subdir when on Windows.

parent 416f1dc1
......@@ -63,8 +63,11 @@ def generate_apidocs(*args):
global working_dir, module_path
output_path = working_dir
apidoc_command_path = 'sphinx-apidoc'
exe_sub_dir = 'bin'
if sys.platform == 'win32':
exe_sub_dir = 'Scripts'
if hasattr(sys, 'real_prefix'): # called from a virtualenv
apidoc_command_path = os.path.join(sys.prefix, 'bin', 'sphinx-apidoc')
apidoc_command_path = os.path.join(sys.prefix, exe_sub_dir, 'sphinx-apidoc')
apidoc_command_path = os.path.abspath(apidoc_command_path)
[apidoc_command_path, '--force', '--separate'] +
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