mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 05:16:24 +02:00
Added normpath... and debugging
This commit is contained in:
parent
e4ecbe2e88
commit
6cd72f7690
1 changed files with 7 additions and 2 deletions
|
|
@ -37,6 +37,9 @@ try:
|
|||
except ImportError:
|
||||
print "no sphinx"
|
||||
|
||||
APP_DIR = os.path.normpath(os.path.join(os.getcwd(), '../..'))
|
||||
sys.path.insert(0, APP_DIR)
|
||||
|
||||
#sys.path.insert(0, os.getcwd() + "/..")
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
|
|
@ -116,9 +119,11 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
|||
|
||||
if on_rtd:
|
||||
#sys.path.insert(0, os.getcwd() + "/../GPy")
|
||||
sys.path.append(os.getcwd() + "/../GPy")
|
||||
#sys.path.append(os.getcwd() + "/../GPy")
|
||||
print "I am here"
|
||||
os.system("pwd")
|
||||
os.system("sphinx-apidoc -f -o . " + os.getcwd() + "/../GPy")
|
||||
os.system("ls ../")
|
||||
os.system("sphinx-apidoc -f -o . ../GPy")
|
||||
#os.system("cd ..")
|
||||
#os.system("cd ./docs")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue