From f6b2c7dbbd2505c80634d72e0edc64b18111bb79 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 19 Sep 2017 20:44:45 -0400 Subject: [PATCH] fix for #512 Signed-off-by: Kenneth Reitz --- pipenv/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index aa4e23c3..e665f816 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -103,7 +103,7 @@ def best_matches_from(path, which, which_pip, project): if line.startswith('Installed'): result = line[len('Installed '):].strip() - setup_py_path = os.path.abspath(os.sep.join([result, 'setup.py'])) + setup_py_path = os.path.abspath(os.sep.join([(result or ''), 'setup.py'])) return list(gen(setup_py_path, which))