Skip to content

Commit

Permalink
fix: use already calculated relative url
Browse files Browse the repository at this point in the history
  • Loading branch information
md384 committed Jul 6, 2021
1 parent f0487f6 commit 97e63f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions poetry/packages/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ def locked_repository(
root_dir = self._lock.path.parent
if package.source_type == "directory":
# root dir should be the source of the package relative to the lock path
root_dir = Path(
os.path.relpath(
Path(package.source_url), self._lock.path.parent
)
).resolve()
root_dir = Path(package.source_url)

if isinstance(constraint, list):
for c in constraint:
Expand Down

0 comments on commit 97e63f6

Please sign in to comment.