From f7c97e2b9b2d2731a9876f26708a5cec8d7052da Mon Sep 17 00:00:00 2001 From: James Porter Date: Sun, 22 Oct 2017 18:23:38 -0400 Subject: [PATCH] ensure venv-location has slash on end --- virtualenvwrapper.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualenvwrapper.el b/virtualenvwrapper.el index dc31e6d..7a3dbaf 100644 --- a/virtualenvwrapper.el +++ b/virtualenvwrapper.el @@ -213,7 +213,7 @@ prompting the user with the string PROMPT" (defun venv--activate-dir (dir) "Given a directory corresponding to a virtualenv, activate it" (run-hooks 'venv-preactivate-hook) - (setq venv-current-dir dir) + (setq venv-current-dir (file-name-as-directory dir)) ;; setup the python shell (setq python-shell-virtualenv-path venv-current-dir) ;; setup emacs exec-path