Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 104 #105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion helics/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import platform
import urllib.request
import logging
import sys
afisher1 marked this conversation as resolved.
Show resolved Hide resolved
from ._version import __version__
from .status_checker import CheckStatusThread

Expand Down Expand Up @@ -305,8 +306,11 @@ def run(path, silent, connect_server, no_log_files, no_kill_on_error):
if "env" in f:
for k, v in f["env"].items():
env[k] = v
p_args = shlex.split(f["exec"])
if p_args[0] == 'python':
p_args[0] = sys.executable
afisher1 marked this conversation as resolved.
Show resolved Hide resolved
afisher1 marked this conversation as resolved.
Show resolved Hide resolved
p = subprocess.Popen(
shlex.split(f["exec"]),
p_args,
cwd=os.path.abspath(os.path.expanduser(directory)),
stdout=o.file,
stderr=o.file,
Expand Down
Loading