Skip to content

resolve_path differs on Windows depending on Python version #1813

Description

@daddycocoaman

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.

More info: https://docs.python.org/3/library/os.path.html#os.path.realpath

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

windowsWindows-specific behavior

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions