Skip to content

Instantly share code, notes, and snippets.

@sashadev-sky
Created March 27, 2021 04:18
Show Gist options
  • Save sashadev-sky/9608dba8877573e85ce74f3557c1e636 to your computer and use it in GitHub Desktop.
Save sashadev-sky/9608dba8877573e85ce74f3557c1e636 to your computer and use it in GitHub Desktop.
fix error couldn't set PYTHONPATH of undefined in VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"cwd": "${fileDirname}",
"env": {
"PYTHONPATH": "${workspaceFolder}:${env:PYTHONPATH}"
}
}
]
}
{
"terminal.integrated.env.osx": {
"PYTHONPATH": "${workspaceFolder}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment