Open Underbite-productions opened 8 years ago
Currently, it's not possible to configure what Python interpreter should be used, but the debugger will use whatever /usr/bin/env python
returns. So at least as a temporary workaround, if you start Atom from the command line when you're in a virtual environment, it should use the appropriate version of Python. I haven't tried though, so let me know if it works. I'll mark this as a future enhancement.
This package seems relevant but might be outdated: https://atom.io/packages/virtualenv
@Underbite-productions You may want to try the python_exe
branch. You'll be able to set what interpreter you want to use. The PYTHONPATH
doesn't follow yet.
The interpreter config is now part of the latest update.
Can you also look into autocomplete-python source and add $PROJECT substitution for current path?
As far as i can see, all related code is in applySubstitutions function: https://github.com/sadovnychyi/autocomplete-python/blob/5637b6ae4a19d5d720ee85167a44a4a02df6d92a/lib/interpreters-lookup.coffee#L56
I'm not sure what you mean. Do you mean to add the project path to the PYTHONPATH
?
+1 for this feature ;)
Which feature? Virtualenv support or $PROJECT
substitution? Note that you can vote up individual comments.
Sorry, just skimmed through the issue. I was voting up for the virtualenv support :)
the virtualenv package is maintained here https://github.com/pghilardi/atom-python-virtualenv
I do a lot of my python work within a virtual environment. I was wondering if this tool enables a particular python installation to be used as the debugger ?