提交 dd8f3ffc 编写于 作者: M Megvii Engine Team

test(distributed): replace python command in subprocess with `sys.executable`

GitOrigin-RevId: 1f4262fd0c3811aeb1a9c54fa135f2ebd1941723
上级 7aa7a09b
......@@ -67,7 +67,7 @@ def start_workers(worker, world_size, trace=False):
cmd += "worker('localhost', 3456, {}, {}, {}, {})".format(
world_size, rank, rank, "True" if trace else "False"
)
cmd = ["python3", "-c", cmd]
cmd = [sys.executable, "-c", cmd]
ret = subprocess.run(
cmd, stdout=sys.stdout, stderr=sys.stderr, universal_newlines=True
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册