add venv as virtualenv to look for when adding venvs to jedi.

This commit is contained in:
Ivan Malison 2014-10-20 16:47:44 -07:00
parent 7e87d26e6e
commit 53f4c48512

View File

@ -238,12 +238,11 @@ Return a list of installed packages or nil for every package not installed."
(defun get-virtual-envs ()
(interactive)
(condition-case ex
(let ((project-root (with-project-root (cdr project-details))))
(cl-remove-if-not 'file-exists-p
(mapcar (lambda (env-suffix) (concat project-root env-suffix))
'(".tox/py27/" "env"))))
'(".tox/py27/" "env" ".tox/venv/"))))
('error
(message (format "Caught exception: [%s]" ex))
(setq retval (cons 'exception (list ex))))