forked from colonelpanic/dotfiles
add venv as virtualenv to look for when adding venvs to jedi.
This commit is contained in:
parent
7e87d26e6e
commit
53f4c48512
3
init.el
3
init.el
@ -238,12 +238,11 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
|
|
||||||
(defun get-virtual-envs ()
|
(defun get-virtual-envs ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
||||||
(condition-case ex
|
(condition-case ex
|
||||||
(let ((project-root (with-project-root (cdr project-details))))
|
(let ((project-root (with-project-root (cdr project-details))))
|
||||||
(cl-remove-if-not 'file-exists-p
|
(cl-remove-if-not 'file-exists-p
|
||||||
(mapcar (lambda (env-suffix) (concat project-root env-suffix))
|
(mapcar (lambda (env-suffix) (concat project-root env-suffix))
|
||||||
'(".tox/py27/" "env"))))
|
'(".tox/py27/" "env" ".tox/venv/"))))
|
||||||
('error
|
('error
|
||||||
(message (format "Caught exception: [%s]" ex))
|
(message (format "Caught exception: [%s]" ex))
|
||||||
(setq retval (cons 'exception (list ex))))
|
(setq retval (cons 'exception (list ex))))
|
||||||
|
Loading…
Reference in New Issue
Block a user