Fix pyi_generator relative path determination (#2485)
This commit is contained in:
parent
1d6da9010e
commit
2782c0fe3c
@ -95,7 +95,9 @@ def _relative_to_pwd(path: Path) -> Path:
|
||||
Returns:
|
||||
The relative path.
|
||||
"""
|
||||
return path.relative_to(PWD)
|
||||
if path.is_absolute():
|
||||
return path.relative_to(PWD)
|
||||
return path
|
||||
|
||||
|
||||
def _git_diff(args: list[str]) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user