diff --git a/poetry/core/packages/directory_dependency.py b/poetry/core/packages/directory_dependency.py index 86fba7e58..0e7c920ee 100755 --- a/poetry/core/packages/directory_dependency.py +++ b/poetry/core/packages/directory_dependency.py @@ -115,7 +115,7 @@ def base_pep_508_name(self): # type: () -> str if self.extras: requirement += "[{}]".format(",".join(self.extras)) - requirement += " @ {}".format(str(self.path)) + requirement += " @ {}".format(self._path.as_posix()) return requirement @@ -124,8 +124,8 @@ def __str__(self): return self._pretty_name return "{} ({} {})".format( - self._pretty_name, self._pretty_constraint, self._path + self._pretty_name, self._pretty_constraint, self._path.as_posix() ) def __hash__(self): - return hash((self._name, self._full_path)) + return hash((self._name, self._full_path.as_posix()))