Skip to content

Commit

Permalink
Support Python < 3.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed Jun 16, 2024
1 parent ee8b8ba commit 58546bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def _search_for_realpath(self) -> str:

# On some systems, /lib(64) might be a symlink to /usr/lib(64), so try removing
# the /usr prefix.
if remote_path.is_relative_to("/usr"):
if self.path.startswith("/usr"):
candidate = gef.session.remote.root / remote_path.relative_to("/usr")
if candidate.is_file():
return str(candidate)
Expand Down

0 comments on commit 58546bf

Please sign in to comment.