From b180ebc5de10c0633ce8bf9b68ec4d0889097c8c Mon Sep 17 00:00:00 2001 From: Nicholas Charriere Date: Wed, 3 Aug 2016 14:21:02 -0700 Subject: Hotfix broken path --- docs/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 8c2d6c6..cc2f9d2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -354,14 +354,15 @@ intersphinx_mapping = {'https://docs.python.org/': None} def run_apidoc(_): module = 'pymemcache' cur_dir = os.path.abspath(os.path.dirname(__file__)) - output_path = os.path.join(cur_dir, 'docs', 'apidoc') + output_path = os.path.join(cur_dir, 'apidoc') + module_path = os.path.join(cur_dir, '..', module) cmd_path = 'sphinx-apidoc' if hasattr(sys, 'real_prefix'): # Check to see if we are in a virtualenv # If we are, assemble the path manually cmd_path = os.path.abspath(os.path.join(sys.prefix, 'bin', 'sphinx-apidoc')) subprocess.check_call([cmd_path, '-e', '-o', - output_path, module, '--force']) + output_path, module_path, '--force']) def setup(app): -- cgit v1.2.1