You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. There was an issue filed under Typer that gives a full explanation, but basically the use of os.path.realpath in the resolve_path logic for click.Path differs between Python 3.7 and 3.8 on Windows. Prior to 3.8, os.path.realpath did not resolve symlinks. Therefore Click users on Windows using Python 3.7 or lower are getting the wrong results for resolve_path.
The way to do this is to check if the path is a link with os.path.islink, and if it is, then get the path with os.readlink. That seems like the best cross-platform solution, and I don't think it should break anything.
I would normally submit a PR but currently super occupied this month. 🤔