Skip to content

Commit

Permalink
Fix executable injection executable path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Feb 12, 2024
1 parent bdc8675 commit 43d2373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/binharness/types/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def __init__(
@property
def executable(self: ExecutableInjection) -> Path:
"""Return the executable path."""
if self.host_path is not None:
if self.env_path is not None:
if self._executable is None:
return self.host_path
return self.host_path / self._executable
return self.env_path
return self.env_path / self._executable
raise InjectionNotInstalledError

def run(
Expand Down

0 comments on commit 43d2373

Please sign in to comment.