title: FileNotFoundError in PIL image with relative path and absoulute path
body: <pre class="lang-py prettyprint-override"><code>import PIL.Image as pilimg
  import numpy as np
  
  # Read image
  im = pilimg.open(&quot;../dataset/start.jpg&quot;)
  
  # Display image
  im.show()
  
  # Fetch image pixel data to numpy array
  pix = np.array(im)
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/a65oA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a65oA.png" alt="Project directory" /></a></p>
  <p>(I'm no the author of the dataset, so I couldn't upload the whole project file.)</p>
  <p>I'm trying to read the image with Pillow and convert it to NumPy array. However, I tried several methods such as using absolute path and methods in <a href="https://stackoverflow.com/questions/11727598/pil-image-open-working-for-some-images-but-not-others">PIL image.open() working for some images but not others</a> except method using OpenCV. However, it makes FileNotFound always.</p>
  <p>The absolute path of <code>start.jpg</code> is <code>F:\GIST 강의 자료\2021 1학기\EC3202 신호 및 시스템\Programming Assignment\dataset\start.jpg</code>. and I believe the relative path to <code>start.jpg</code> from <code>src/program.py</code> is <code>../dataset/start.jpg</code>.</p>
  <p>I'm using conda 4.10.1 and python 3.8.8 and windows 10.</p>