How to correctly set PYTHONPATH for Visual Studio Code
I have a situation that I believe is relatively common. I want a script to import a module from another directory. My python project is laid out as follows: ~/project/ | |—modules/ | |—mod.py |—scripts/ |—script.py in script.py, I have from modules import mod. So my PYTHONPATH needs to be set to ~/project/ (something that … Read more