I do this check because apparently magit opens a lot of buffers in some of its operations, and simply callinv pyvenv-workon in dir-locals made magit very, very slow.
Could we add a flag to pyvenv-workon that did something like this, i.e. do nothing if the requested environment is active? I'd be happy to do the work.
Many of my projects have a
.dir-locals.el
that does something like this:I do this check because apparently magit opens a lot of buffers in some of its operations, and simply callinv
pyvenv-workon
in dir-locals made magit very, very slow.Could we add a flag to
pyvenv-workon
that did something like this, i.e. do nothing if the requested environment is active? I'd be happy to do the work.