From 95fc44ac423f821bd43f0cde69a66b786fa806c5 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Fri, 22 Dec 2017 01:49:09 -0500 Subject: [PATCH] Fix parsing of paths for testing installable files --- pipenv/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index ad756df1..a92cc28b 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -888,8 +888,9 @@ def is_installable_file(path): if not lookup_path.exists(): return False lookup_link = Link(lookup_path.resolve().as_uri()) - return ((lookup_path.is_file() and (is_archive_file(lookup_path.absolute()) or lookup_link.is_wheel)) or - (lookup_path.is_dir() and pip.utils.is_installable_dir(lookup_path.resolve().as_posix()))) + absolute_path = '{0}'.format(lookup_path.absolute()) + return ((lookup_path.is_file() and (is_archive_file(absolute_path) or lookup_link.is_wheel)) or + (lookup_path.is_dir() and pip.utils.is_installable_dir(lookup_path.as_posix()))) def is_file(package):