提交 058ccac5 authored 作者: James Bergstra's avatar James Bergstra

config.home falls back on expanduser("~") when no $HOME is defined

上级 55f43570
......@@ -31,7 +31,8 @@ AddConfigVar('optimizer',
AddConfigVar('home',
"User home directory",
StrParam(os.getenv("HOME")))
StrParam(os.getenv("HOME", os.path.expanduser('~'))))
#This expanduser works on windows (see discussion on theano-users, July 13 2010)
AddConfigVar('nocleanup',
"suppress the deletion of code files that did not compile cleanly",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论