title: Why does not Atom recognize other files in the same directory?
body: <p>I want to use some text files that I have in the same directory in my script. But Atom always gives me this error</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'comments.txt'
  [Finished in 0.156s]
  </code></pre>
  
  <p>Anyone know how to fix this?</p>
  
  <p>This is my code</p>
  
  <pre><code>with open('comments.txt', 'r') as f:
      myNames = [line.strip() for line in f]
  print(myNames)
  </code></pre>
  
  <p>It works on other IDE's such as Pycharm and sublime text. I also tried it on the python idle.</p>
  
  <p>In Atom, it only works when I give it the full path. But I want it to only use the project path.</p>