ofek / userpath

Cross-platform tool for adding locations to the user PATH, no elevated privileges required!
MIT License
151 stars 20 forks source link

Use realpath instead of normpath to check presence in path #22

Closed FallenWarrior2k closed 2 years ago

FallenWarrior2k commented 4 years ago

The functionality to test if a location is on the path currently relies on normpath, as can be seen here.

However, normpath is not symlink-aware. This means that if a symlink to a directory is on the path, userpath will report that the actual location of that directory is not on the path, which can cause issues like pipxproject/pipx#329.

ofek commented 2 years ago

https://pypi.org/project/userpath/1.7.0/