From dd8f3ffc4def34ea35c98589c967fdc7fddb5546 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Thu, 21 May 2020 12:50:07 +0800 Subject: [PATCH] test(distributed): replace python command in subprocess with `sys.executable` GitOrigin-RevId: 1f4262fd0c3811aeb1a9c54fa135f2ebd1941723 --- python_module/test/integration/test_distributed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_module/test/integration/test_distributed.py b/python_module/test/integration/test_distributed.py index c816e5e9..61ef5246 100644 --- a/python_module/test/integration/test_distributed.py +++ b/python_module/test/integration/test_distributed.py @@ -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 )