diff --git a/doc/conf.py b/doc/conf.py index 89bf102c..141a3355 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -37,6 +37,9 @@ try: except ImportError: print "no sphinx" +parent = os.path.dirname(os.path.dirname(__file__)) +sys.path.append(os.path.abspath(parent)) + #APP_DIR = os.path.normpath(os.path.join(os.getcwd(), '../')) #PACKAGE_DIR1 = os.path.normpath(os.path.join(os.getcwd(), '../')) #sys.path.insert(0, APP_DIR) @@ -125,8 +128,6 @@ on_rtd = True if on_rtd: print "I am here" - sys.path.append('../GPy') - import subprocess proc = subprocess.Popen("pwd", stdout=subprocess.PIPE, shell=True)