Skip to content

resolve_path differs on Windows depending on Python version #1813

Closed
@daddycocoaman

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions