In VS Code, when we run the code generation file, the VS Code terminal enters the project root directory by default (the command to run the file is executed here):
In VS Code, when we run the code generation file, the VS Code terminal enters the project root directory by default (the command to run the file is executed here):
Method 1:
Please "cd" to the folder you need before running the python script:
Method 2:
Please modify the debugging path to the file you need: please use the following settings in "launch.json": "cwd": "${fileDirname}",
then click F5
:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…