提交 444c4638 编写于 作者: Y yi.wu

update for pre-commit

上级 c1cb483a
...@@ -46,7 +46,8 @@ def init(**kwargs): ...@@ -46,7 +46,8 @@ def init(**kwargs):
# NOTE: append arguments if they are in ENV # NOTE: append arguments if they are in ENV
for ek, ev in os.environ.iteritems(): for ek, ev in os.environ.iteritems():
if ek.startswith("PADDLE_"): if ek.startswith("PADDLE_"):
args.append('--%s=%s' % (ek.replace("PADDLE_", "").lower(), str(ev))) args.append('--%s=%s' % (ek.replace("PADDLE_", "").lower(),
str(ev)))
# NOTE: overwrite arguments from ENV if it is in kwargs # NOTE: overwrite arguments from ENV if it is in kwargs
for key in kwargs.keys(): for key in kwargs.keys():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册