From f14eb1998525d0899ad47d3d4379afda67c0ae73 Mon Sep 17 00:00:00 2001 From: Charlie Li Date: Wed, 28 Feb 2018 05:31:11 -0500 Subject: [PATCH] Correct csh syntax in activate_virtualenv In csh, the . operator executes a directory, which is the wrong behaviour here. At best, when pipenv is installed system-wide (preferably via the operating system package manager), the result is a permission denied error from the shell. As csh uses the source command, reflect that here. --- pipenv/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pipenv/core.py b/pipenv/core.py index be6c5b08e0..941ade2880 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1218,6 +1218,7 @@ def activate_virtualenv(source=True): # Support for csh shell. if PIPENV_SHELL and 'csh' in PIPENV_SHELL: suffix = '.csh' + command = 'source' # Escape any spaces located within the virtualenv path to allow # for proper activation.