From 6855838d0d031cbe727aefcae3246fcd3c89a1f6 Mon Sep 17 00:00:00 2001 From: George Dang <53052793+gtdang@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:28:43 -0400 Subject: [PATCH] refactor: logic clarity Co-authored-by: Mainak Jas --- hnn_core/parallel_backends.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hnn_core/parallel_backends.py b/hnn_core/parallel_backends.py index 3dda3b7cc..4016c95c8 100644 --- a/hnn_core/parallel_backends.py +++ b/hnn_core/parallel_backends.py @@ -649,7 +649,8 @@ def __init__(self, n_procs=None, mpi_cmd='mpiexec'): 'mpi_child.py') # Split the command into shell arguments for passing to Popen - self.mpi_cmd = shlex.split(self.mpi_cmd, posix=sys.platform != 'win32') + use_posix = True if sys.platform != 'win32' else False + self.mpi_cmd = shlex.split(self.mpi_cmd, posix=use_posix) def __enter__(self): global _BACKEND