Skip to content

Commit

Permalink
add "./" to executable paths not containing a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ricffb committed Dec 22, 2024
1 parent b2cb946 commit c023a76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/vcloud/benchmarkclient_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ def init(config, benchmark):

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

benchmark.executable = str(executable_for_cloud)

else:
Expand Down

0 comments on commit c023a76

Please sign in to comment.