Skip to content

Commit 7a14e73

Browse files
Better robot detection on Run Profiles
1 parent ffbe1bf commit 7a14e73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/robotide/contrib/testrunner/runprofiles.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ def get_command(self): # TODO Test on Windows
154154
from tempfile import TemporaryFile
155155
result = None
156156
try:
157+
with TemporaryFile(mode="at") as out:
158+
result = call(["robot",
159+
"--version"], stdout=out)
160+
if result == 251:
161+
return "robot"
162+
157163
with TemporaryFile(mode="at") as out:
158164
result = call(["robot.bat" if os.name == "nt" else "robot",
159165
"--version"], stdout=out)

0 commit comments

Comments
 (0)