I am trying to use pdb as a python debugger in emacs
I'm getting the import error issues, as in:
https://emacs.stackexchange.com/questions/18190/missing-modules-when-debugging-python-code-in-emacs
How to specifiy path when using pdb in emacs?
the suggested solution, i.e.
(setenv "PYTHONPATH" "lib")
in .emacs
or emacs.d/init.el
This seems very unsatisfactory as you are effectively duplicating the pythonpath
data which will trip you up at some point when you update one but not the other.
How can one get the pythonpath
as used by pdb
to be exactly the same as that is used say if I open an ipython
shell.
In other words I want pdb
to reflect the path locations that get automatically loaded from my .bashrc
and miniconda
installation when I open ipython
also, how does ipython
know which miniconda dirs to pull into the pythonpath
? which file is that specified in?