提交 13d82982 authored 作者: Frederic Bastien's avatar Frederic Bastien

add the USER keyword with a default value to allow using it into the .theanorc file.

上级 c75a9204
......@@ -31,7 +31,7 @@ def config_files_from_theanorc():
#To don't need to change the filename and make it open easily
rval.append(os.path.expanduser('~/.theanorc.txt'))
return rval
theano_cfg = ConfigParser.SafeConfigParser()
theano_cfg = ConfigParser.SafeConfigParser({'USER':os.getenv("USER", os.path.split(os.path.expanduser('~'))[-1])})
theano_cfg.read(config_files_from_theanorc())
def parse_env_flags(flags, name , default_value=None):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论