Skip to content

Commit

Permalink
Merge pull request #5744 from wulei01/master
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Aug 10, 2023
2 parents 35dc287 + 2a32a0d commit 5d72c04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avocado/utils/iso9660.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def has_userland_tool(executable):
:rtype: bool
"""
if os.path.isabs(executable):
return os.path.exists(executable)
return os.path.isfile(executable)
else:
for path in os.environ["PATH"].split(":"):
if os.path.exists(os.path.join(path, executable)):
for path in os.environ["PATH"].split(os.pathsep):
if os.path.isfile(os.path.join(path, executable)):
return True
return False

Expand Down

0 comments on commit 5d72c04

Please sign in to comment.