Skip to content

Commit c18a5bd

Browse files
committed
Deactivate virualenv when python-activate is calles with nil
Fix #19
1 parent fe75bc1 commit c18a5bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonic.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ process flag."
295295
(defun pythonic-activate (virtualenv)
296296
"Activate python VIRTUALENV."
297297
(interactive "DEnv: ")
298-
(setq python-shell-virtualenv-root (pythonic-python-readable-file-name virtualenv)))
298+
(setq python-shell-virtualenv-root
299+
(and virtualenv (pythonic-python-readable-file-name virtualenv))))
299300

300301
;;;###autoload
301302
(defun pythonic-deactivate ()

0 commit comments

Comments
 (0)