-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about virtual environments #70
Comments
Hi there, and thanks for creating an issue! It's true, the virtualenv handling of this package could use some love. I originally wrote this when I exclusively used virtual environments managed by virtualenvwrapper, so could count on a consistent set of conventions around how environments are managed. It looks like |
Still haven't gotten around to fixing this, but haven't forgotten, either. One follow-up question: the doc for Thanks! |
I believe it's because its value is passed to |
#71 takes advantage of existing emacs libraries tracking Small step towards extending coverage to the wild and wooly world of python virtual environments |
I'm using
flycheck-pycheckers
with a python file and have set the virtual environment appropriately usingpython-shell-virtualenv-root
andflycheck-pycheckers-venv-root
is also set correctly.However, flycheck-pycheckers does not seem to see this virtual environment, and complains that modules that are installed in the virtualenv cannot be found.
Is there something I need to do to tell
flycheck-pycheckers
about the current virtual environment? I see that the command is passed the virtual env root directory as a command line argument, but don't see how it knows which virtual environment in the root it should be using when checking a particular file.Looking at
pycheckers.py
, I can see that there's a--venv-path
argument, but nothing inflycheck-pycheckers.el
uses that argument. Adding the following to my source file seems to work properly:Would it make sense to have a buffer-local variable like
flycheck-pycheckers-venv-path
that defaults tonil
, and is passed to pycheckers.py? If you think this is a reasonable step to take, I could try to make a PR.The text was updated successfully, but these errors were encountered: