title: Why does my python bash subprocess show a cant open file error?
body: <p>I have a python tile menu script where a subprocess executes a bash shell:</p>
  
  <pre><code>    # excute shell script
      subprocess.call([self.path + '/pimenu.sh'] + actions)
  </code></pre>
  
  <p>and in the shell I have:</p>
  
  <pre><code>   python ./to/file/name/"$*".py
  </code></pre>
  
  <p>but when the python script which is found and executed returns an error as it cant find the folder with the images in.: </p>
  
  <pre><code>  pygame.error: Couldn't open ./file/name/image.jpg
  </code></pre>
  
  <p>I am assuming it is looking in the folder the menu script is in, how can I give python or bash the correct path to the scripts resources?</p>