提交 72e086b5 编写于 作者: T tangwei

windows path adapt

上级 89799b5f
......@@ -108,11 +108,12 @@ def update_workspace():
workspace = global_envs.get("train.workspace", None)
if not workspace:
return
path = windows_path_adapter(workspace)
workspace = windows_path_adapter(workspace)
for name, value in global_envs.items():
if isinstance(value, str):
value = value.replace("{workspace}", path)
value = value.replace("{workspace}", workspace)
value = windows_path_adapter(value)
global_envs[name] = value
......
......@@ -136,6 +136,7 @@ def cluster_engine(args):
for name, value in cluster_envs.items():
if isinstance(value, str):
value = value.replace("{workspace}", path)
value = envs.windows_path_adapter(value)
cluster_envs[name] = value
def master():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册