diff --git a/pylammpsmpi/wrapper/concurrent.py b/pylammpsmpi/wrapper/concurrent.py index 1605169..bc5f70e 100644 --- a/pylammpsmpi/wrapper/concurrent.py +++ b/pylammpsmpi/wrapper/concurrent.py @@ -3,6 +3,7 @@ # Distributed under the terms of "New BSD License", see the LICENSE file. import os +import sys from concurrent.futures import Future from queue import Queue from pympipool.shared import ( @@ -35,7 +36,7 @@ def execute_async( executable = os.path.join( os.path.dirname(os.path.abspath(__file__)), "..", "mpi", "lmpmpi.py" ) - cmds = ["python", executable] + cmds = [sys.executable, executable] if cmdargs is not None: cmds.extend(cmdargs) interface = interface_bootup(