I check it every time I start a project, but it's a record because I'm wasting time because only the setting method of Path (/ usr / local / bin / python3
) of the Python command appears.
Create an .env file and
sh:/path/to/project/.vscode/.env
PYTHONPATH=./src:$PYTHONPATH
Specify that .env file in settings.json
.
json:/path/to/project/.vscode/settings.json
{
"python.envFile": "/path/to/project/.vscode/.env"
}
Only this!
Recommended Posts