Skip to content

Commit fe51d28

Browse files
authored
Merge pull request sosy-lab#1140 from sosy-lab/fix-executable-paths-without-dir
add "./" to executable paths not containing a directory
2 parents b2cb946 + c023a76 commit fe51d28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/vcloud/benchmarkclient_executor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ def init(config, benchmark):
8282

8383
# The vcloud uses the tool location later to determine which files need to be uploaded
8484
# So this needs to point to the actual path where the executable is on the host
85+
if not executable_for_cloud.is_absolute() and "/" not in str(
86+
executable_for_cloud
87+
):
88+
# add ./ to the beginning of the path if the executable is just the executable name
89+
# otherwise os.path.dirname will return '' causing problems with some tool info modules
90+
executable_for_cloud = "./" + str(executable_for_cloud)
91+
8592
benchmark.executable = str(executable_for_cloud)
8693

8794
else:

0 commit comments

Comments
 (0)