From fa349f6c4ae4210b58d335bbd91f60a20d1586e0 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Wed, 25 Jan 2017 17:39:23 -0800 Subject: [PATCH] Remove accidental duplicate backslash, add comment --- pipenv/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index ff1a9657..a799e718 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -238,7 +238,9 @@ def activate_virtualenv(source=True): if 'csh' in os.environ['SHELL']: suffix = '.csh' - venv_location = project.virtualenv_location.replace(' ', '\\ ') + # Escape any spaces located within the virtualenv path to allow + # for proper activation. + venv_location = project.virtualenv_location.replace(' ', '\ ') if source: return 'source {0}/bin/activate{1}'.format(venv_location, suffix)