I am trying to do an import in python from one directory level up.
import sys sys.path.append(\'..\') from cn_modules import exception
I g
In your launch.json file, change env:{} to:
env:{}
"env": {"PYTHONPATH": "${workspaceRoot}"}