Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add missing as_posix() calls
As PR #2398 changed package.root_dir from str to Path, we need to call
as_posix() to convert it to str before passing to os.path.join.
  • Loading branch information
msakai committed Jun 19, 2020
commit df83517afbaa69680f72f2a7e6c0ab415b046425
4 changes: 2 additions & 2 deletions poetry/installation/pip_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def requirement(self, package, formatted=False):

if package.source_type in ["file", "directory"]:
if package.root_dir:
req = os.path.join(package.root_dir, package.source_url)
req = os.path.join(package.root_dir.as_posix(), package.source_url)
else:
req = os.path.realpath(package.source_url)

Expand Down Expand Up @@ -184,7 +184,7 @@ def install_directory(self, package):
from poetry.utils.toml_file import TomlFile

if package.root_dir:
req = os.path.join(package.root_dir, package.source_url)
req = os.path.join(package.root_dir.as_posix(), package.source_url)
else:
req = os.path.realpath(package.source_url)

Expand Down