title: Why does Visual Studio Code keep changing the working directory?
body: <p>I am trying to use VS Code to work my way through the "Flask Web Development" book. I can get the simple hello world example running from the command line but I want to use VS code for debugging etc. I modify the launch.json file to build a Flask config:</p>
  
  <pre><code>    "name": "Flask",
      "type": "python",
      "request": "launch",
      "module": "flask",
      "env": {
           "FLASK_APP": "flasker.py",
           "FLASK_ENV": "development",
           "FLASK_DEBUG": "0"
      },
     "args": [
         "run",
             "--no-debugger",
             "--no-reload"
         ],
         "jinja": true
      },
  </code></pre>
  
  <p>where flasker.py. is the name of my hello world type app. Every time I try to run it, or debug it, VS can not find the file. My dir structure is:</p>
  
  <pre><code>dev
      --pythonStuff
          --pythonClass
          --flask
                flasker.py
  </code></pre>
  
  <p>pythonClass is a dir/playground from a recent python class I took. The flask dir is where I'm currently working.
  Doing a pwd in the console always yields pythonClass. I'll cd to flasker, export FLASK_APP=flasker.py and FLASK_DEBUG=1 and then flask run and everything is good. But when I try to run the debugger, it's still pointing to pythonClass and can't find the flasker.py app. I did find a .vscode dir in the pythonClass dir, which has launch.json and settings.json files, but not sure how/why it was created there. Nothing magical in either file. I've googled every combination of flask cwd/pwd PATH I can think of. I know it's probably a simple fix, but can't seem to sort this out. Appreciate any guidance.</p>