How to add a relative path in python to find image and other file with a short path?
<p>My project folder arrange in the following way:</p>

<pre class="lang-none prettyprint-override"><code>Project folder-&gt; Program folder-&gt;program
              -&gt; Image folder named images-&gt;image
</code></pre>

<p>Now when I try to deal with a image in my program with path <code>images/image1.png</code>?
An error happens.
Can add a relative path in python to find image with the  short path <code>images/image1.png</code>?</p>

<p>I do not want to move my image folder into program folder nor change the path by <code>../images/image1.png</code>?</p>