title: VSCode Python Debugger FileNotFoundError
body: <p>Let's define a simple folder structure like this:</p>
  
  <pre><code>project
  +---code
  |       main.py
  |
  \---data
          foo.txt
  </code></pre>
  
  <p>main.py:</p>
  
  <pre><code>foo_path = "./../data/foo.txt"
  
  with open(foo_path) as f:
      s = f.read()
      print(s)
  </code></pre>
  
  <p>This code works well while running normally using <code>python main.py</code> command, but it throws the following error while debugging using VSCode Python Debugger.</p>
  
  <pre><code>Exception has occurred: FileNotFoundError
  [Errno 2] No such file or directory: './../data/foo.txt'
    File "C:\Users\user\Workspaces\project\code\main.py", line 3, in &lt;module&gt;
      with open(foo_path) as f:
  </code></pre>
  
  <p>I am using VSCode with Python 3.7.1 Anaconda version in Windows 10. I know that the file path is like a Linux path, but it works while running normally. I couldn't find any open issue in <a href="https://github.com/Microsoft/vscode-python" rel="noreferrer">the GitHub repo of Python VSCode Extension</a>. Is this a common error, or am I doing something wrong?</p>
  
  <p>Also, if I define <code>foo_path = ".\\..\\data\\foo.txt"</code>, it behaves same as the previous one. It runs well normally and gives the same error while debugging.</p>
  
  <p>How can I fix this without using extra package like <code>os.path</code> or using the full file path?</p>
  
  <p>EDIT: I tried in Ubuntu 18.04, and it behaves same.</p>