提交 e984b7d2 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Delete obsolete options.

上级 429a8fae
...@@ -491,33 +491,6 @@ AddConfigVar( ...@@ -491,33 +491,6 @@ AddConfigVar(
EnumStr('warn', 'raise', 'pdb', 'ignore'), EnumStr('warn', 'raise', 'pdb', 'ignore'),
in_c_key=False) in_c_key=False)
def safe_no_home(home):
"""
Make sure the user is not attempting to use `config.home`.
This config option was removed in Thenao 0.5 since it was redundant with
`config.base_compiledir`. This filter function ensures people who were
setting the location of their compilation directory through `config.home`
switch to `config.basecompiledir` instead, by raising an error when
`config.home` is used.
"""
if home:
raise RuntimeError(
'The `config.home` option has been removed and should not be '
'used anymore. Please set the `config.base_compiledir` option '
'instead (for instance to: %s)' %
os.path.join(home, '.theano'))
return True
AddConfigVar(
'home',
"This config option was removed in 0.5: do not use it!",
ConfigParam('', allow_override=False, filter=safe_no_home),
in_c_key=False)
AddConfigVar( AddConfigVar(
'nocleanup', 'nocleanup',
"Suppress the deletion of code files that did not compile cleanly", "Suppress the deletion of code files that did not compile cleanly",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论