From cdf401a77cf178c603534a2eec84a87f6298af4b Mon Sep 17 00:00:00 2001 From: tqchen Date: Sun, 26 Jul 2015 12:40:21 -0700 Subject: [PATCH] ok --- doc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 52d32f2b9..0a7302dc2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -29,7 +29,8 @@ sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.insert(0, os.path.abspath('../wrapper/')) +curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) +sys.path.insert(0, os.path.join(curr_path, '../wrapper/')) # -- General configuration ------------------------------------------------