Skip to content

Commit

Permalink
Call python executable via sys.executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Feb 22, 2024
1 parent b09d793 commit 3debc2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylammpsmpi/wrapper/concurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3debc2f

Please sign in to comment.