From c1061bd0a208687b4b08aacf2e3f81403ff88521 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Fri, 3 Apr 2020 16:30:01 -0400 Subject: [PATCH] Use vistir path normalization for shortened windows paths Signed-off-by: Dan Ryan --- pipenv/core.py | 2 +- tests/integration/test_project.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 4171ff6f..b54f1906 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1469,7 +1469,7 @@ def pip_install( ) pip_command.extend(pip_args) if r: - pip_command.extend(["-r", r]) + pip_command.extend(["-r", vistir.path.normalize_path(r)]) elif line: pip_command.extend(line) pip_command.extend(prepare_pip_source_args(sources)) diff --git a/tests/integration/test_project.py b/tests/integration/test_project.py index ce5ab380..ad38d74a 100644 --- a/tests/integration/test_project.py +++ b/tests/integration/test_project.py @@ -8,8 +8,8 @@ import pytest from pipenv.patched import pipfile from pipenv.project import Project -from pipenv.utils import temp_environ, normalize_path -from pipenv.vendor.vistir.path import is_in_path +from pipenv.utils import temp_environ +from pipenv.vendor.vistir.path import is_in_path, normalize_path from pipenv.vendor.delegator import run as delegator_run