Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

vscode python workding directory

{
    "version": "0.2.0",
    "configurations": [
    {
            "name": "Python: Current File (Integrated Terminal)",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "cwd": "${fileDirname}"
    }, 

    // my launch.json file was auto-generated by VS Code
    // in the directory of my current "Open Project". 
    // I just edited the file manually to add "cwd": "${fileDirname}"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vscode #python #workding #directory
ADD COMMENT
Topic
Name
9+4 =