WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1e6c55d

Browse files
authored
Merge pull request #181 from pyiron/python_executable
Call python executable via sys.executable
2 parents b09d793 + 3debc2f commit 1e6c55d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylammpsmpi/wrapper/concurrent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Distributed under the terms of "New BSD License", see the LICENSE file.
44

55
import os
6+
import sys
67
from concurrent.futures import Future
78
from queue import Queue
89
from pympipool.shared import (
@@ -35,7 +36,7 @@ def execute_async(
3536
executable = os.path.join(
3637
os.path.dirname(os.path.abspath(__file__)), "..", "mpi", "lmpmpi.py"
3738
)
38-
cmds = ["python", executable]
39+
cmds = [sys.executable, executable]
3940
if cmdargs is not None:
4041
cmds.extend(cmdargs)
4142
interface = interface_bootup(

0 commit comments

Comments
 (0)