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

Fix for previous commit, when PYTHONPATH does not exist

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