Skip to content

Commit

Permalink
ensure venv-location has slash on end
Browse files Browse the repository at this point in the history
  • Loading branch information
porterjamesj committed Oct 22, 2017
1 parent c504e08 commit f7c97e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualenvwrapper.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7c97e2

Please sign in to comment.