title: Python: FileNotFoundError: [Errno 2] No such file or directory - How to add file to the right directory
body: <p>I'm new to python! Seen many issues related to this problem but can't find the right way of doing it.
  I want to import a picture and change it.</p>
  <p>My code is:</p>
  <pre><code>from PIL import Image, ImageFilter
  import os
  
  root_dir= os.path.dirname(os.path.abspath(r'C:\Users\User\eclipse-workspace\Practice Python CS50 2019\images\Mario.png'))
  before = Image.open('Mario.png')
  after=before.filter(ImageFilter.BLUR)
  after.save(&quot;MarioBLUR.png&quot;)
  </code></pre>
  <p>The error I'm getting is:</p>
  <p>Traceback (most recent call last):
  File &quot;C:\Users\User\eclipse-workspace\Practice Python CS50 2019\src\Class 6\blur.py&quot;, line 5, in 
  before = Image.open('Mario.png')
  File &quot;C:\Users\User\anaconda3\lib\site-packages\PIL\Image.py&quot;, line 2809, in open
  fp = builtins.open(filename, &quot;rb&quot;)
  FileNotFoundError: [Errno 2] No such file or directory: 'Mario.png'</p>
  <p>My windows location for this picture is: C:\Users\User\Downloads\Mario.png
  My eclipse location is: C:\Users\User\eclipse-workspace\Practice Python\images\Mario.png</p>
  <p>How to add this picture to the right directory to make sure I won't have this issue anymore?</p>