Skip to content

Commit

Permalink
Merge pull request #181 from pyiron/python_executable
Browse files Browse the repository at this point in the history
Call python executable via sys.executable
  • Loading branch information
jan-janssen authored Feb 22, 2024
2 parents b09d793 + 3debc2f commit 1e6c55d
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 1e6c55d

Please sign in to comment.