dpo / atom-python-debugger

IDE-like Python debugger for Atom
MIT License
42 stars 13 forks source link

virtualenv #6

Open Underbite-productions opened 8 years ago

Underbite-productions commented 8 years ago

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 ?

dpo commented 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.

dpo commented 8 years ago

This package seems relevant but might be outdated: https://atom.io/packages/virtualenv

dpo commented 8 years ago

@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.

dpo commented 8 years ago

The interpreter config is now part of the latest update.

WeirdCarrotMonster commented 8 years ago

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

dpo commented 8 years ago

I'm not sure what you mean. Do you mean to add the project path to the PYTHONPATH?

dpo commented 8 years ago

Ah, you mean this.

Bengrunt commented 8 years ago

+1 for this feature ;)

dpo commented 8 years ago

Which feature? Virtualenv support or $PROJECT substitution? Note that you can vote up individual comments.

Bengrunt commented 8 years ago

Sorry, just skimmed through the issue. I was voting up for the virtualenv support :)

polmonso commented 4 years ago

the virtualenv package is maintained here https://github.com/pghilardi/atom-python-virtualenv