Skip to content

Commit

Permalink
Use Path.samefile instead of absolute or resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Apr 23, 2024
1 parent 932f80c commit c6730eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menuinst/platforms/base.py
Expand Up @@ -37,7 +37,7 @@ def __init__(
self.prefix = Path(prefix)
self.base_prefix = Path(base_prefix)

if self.prefix.resolve() == self.base_prefix.resolve():
if self.prefix.samefile(self.base_prefix):
self.env_name = None
else:
self.env_name = self.prefix.name
Expand Down

0 comments on commit c6730eb

Please sign in to comment.