Virtualenv's pylint not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
New
|
Wishlist
|
Andreas Roehler |
Bug Description
When I set up my virtual environment in emacs, I also configure flycheck's pylint to point to the executable that's in the virtual environment. The way I'm doing this right now is:
(defun my-set-
"Change flycheck pylint executable to virtualenv executable"
(if (and (boundp 'virtualenv-name)
(let ((pylintpath
))
(setq flycheck-
)))
(add-hook 'python-mode-hook 'my-set-
but this means if I open a Python file, then go "oh yeah, I need to set the virtual environment" and set it with (virtualenv-
The way I'd rather do this is make it a hook to (virtualenv-
Is there a way to automate this that actually supports the workflow I've described?
Changed in python-mode: | |
importance: | Undecided → Medium |
milestone: | none → 6.2.0 |
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
milestone: | 6.2.0 → 6.2.1 |
Changed in python-mode: | |
importance: | Medium → Wishlist |
Changed in python-mode: | |
milestone: | 6.2.1 → 6.2.3 |
Changed in python-mode: | |
milestone: | 6.2.3 → 6.2.4 |
virtualenv-activate should put the VE bin directory at the head of exec-path.
Thus VE pylint is expected to be found - needs some investigation why not.
For the moment you could advice virtualenv-activate with your function - and do the respective with virtualenv- deactivate. However, not seriously recommending that - let's cure the bug rather.