提交 ec23747d authored 作者: abergeron's avatar abergeron

Merge pull request #1941 from nouiz/config

Add support of more env variable.
......@@ -74,8 +74,12 @@ def config_files_from_theanorc():
config_files = config_files_from_theanorc()
theano_cfg = ConfigParser.SafeConfigParser(
{'USER': os.getenv("USER", os.path.split(os.path.expanduser('~'))[-1])}
)
{'USER': os.getenv("USER", os.path.split(os.path.expanduser('~'))[-1]),
'LSCRATCH': os.getenv("LSCRATCH", ""),
'TMPDIR': os.getenv("TMPDIR", ""),
'TEMP': os.getenv("TEMP", ""),
'TMP': os.getenv("TMP", "")}
)
theano_cfg.read(config_files)
# Having a raw version of the config around as well enables us to pass
# through config values that contain format strings.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论