Skip to content
Open
Changes from all commits
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
4 changes: 3 additions & 1 deletion Python/robodk/robolink.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,9 @@ def error_reader(proc):
print('Warning: A new instance of RoboDK is being created.')
self.NEW_INSTANCE = None
if (_platform == "linux" or _platform == "linux2") and os.path.splitext(command[0])[1] == ".sh":
self.NEW_INSTANCE = subprocess.Popen(command, shell=True, executable='/bin/bash', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
import shlex
command_string = shlex.join(str(c) for c in command)
self.NEW_INSTANCE = subprocess.Popen(command_string, shell=True, executable='/bin/bash', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
elif _platform == "darwin":
# Popen does not work sometimes (such as running from fusion)
#startapp = ["/usr/bin/open", command[0].split("/Content")[0]]
Expand Down