提交 1ad65657 authored 作者: Frederic's avatar Frederic

In docgen.py correctly set the python path to the current theano version.

上级 a2207877
...@@ -93,7 +93,7 @@ if __name__ == '__main__': ...@@ -93,7 +93,7 @@ if __name__ == '__main__':
# Make sure the appropriate 'theano' directory is in the PYTHONPATH # Make sure the appropriate 'theano' directory is in the PYTHONPATH
pythonpath = os.environ.get('PYTHONPATH', '') pythonpath = os.environ.get('PYTHONPATH', '')
pythonpath = os.pathsep.join([throot, pythonpath]) pythonpath = os.pathsep.join([throot, pythonpath])
os.environ['PYTHONPATH'] = pythonpath sys.path[0:0] = [throot] # We must not use os.environ.
if options['--all'] or options['--epydoc']: if options['--all'] or options['--epydoc']:
mkdir("api") mkdir("api")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论