Answer the question
In order to leave comments, you need to log in
Why does python on vs code incorrectly create a folder with vs code?
import os
if not os.path.exists("data"):
os.mkdir("data")
Answer the question
In order to leave comments, you need to log in
launch settings are in the .vscode/launch.json file,
add a parameter there cwd
with the value"${fileDirname}"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question