diff --git a/condax/core.py b/condax/core.py index b741afe..66d1479 100644 --- a/condax/core.py +++ b/condax/core.py @@ -147,7 +147,7 @@ def remove_links(executables_to_unlink: Collection[Path], env_prefix: Path) -> N os.unlink(link) removed_links[exe] = link else: - if os.path.islink(link) and (os.readlink(link) == exe): + if os.path.islink(link) and (os.readlink(link) == str(exe)): os.unlink(link) removed_links[exe] = link diff --git a/news/fix_remove_links.md b/news/fix_remove_links.md new file mode 100644 index 0000000..c952885 --- /dev/null +++ b/news/fix_remove_links.md @@ -0,0 +1,23 @@ +### Added: + +* + +### Changed: + +* + +### Deprecated: + +* + +### Removed: + +* + +### Fixed: + +* Fix links not removed after uninstalling package + +### Security: + +*