diff options
author | Nicholas Charriere <nicholas@pinterest.com> | 2016-08-03 14:21:02 -0700 |
---|---|---|
committer | Nicholas Charriere <nicholas@pinterest.com> | 2016-08-03 15:27:43 -0700 |
commit | b180ebc5de10c0633ce8bf9b68ec4d0889097c8c (patch) | |
tree | 70b0cd27f31631596d4c9df27bd6b77d3b7cf16c | |
parent | d4293ce8afa67ad19817f3bda356f7ba911db8fc (diff) | |
download | pymemcache-b180ebc5de10c0633ce8bf9b68ec4d0889097c8c.tar.gz |
Hotfix broken path
-rw-r--r-- | docs/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |