提交 fe592d55 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Sets PYTHONPATH so epydoc can import theano in order to produce the api doc.

上级 0100d87b
......@@ -97,6 +97,11 @@ if __name__ == '__main__':
mkdir("doc")
mkdir("api")
# Make sure the appropriate 'theano' directory is in the PYTHONPATH
pythonpath = os.environ['PYTHONPATH']
pythonpath = throot + ':' + pythonpath
os.environ['PYTHONPATH'] = pythonpath
if options['--all'] or options['--epydoc']:
from epydoc.cli import cli
sys.path[0:0] = [throot]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论