running python from another directory
<p>Hallo,</p>

<p>if i try to run a python script from another directory, it tells me everytime that he cannot find all the ressource files:</p>

<blockquote>
  <p>pygame.error: Couldn't open ../data/icon.png</p>
</blockquote>

<p>etc..</p>

<p>I think this is because of the relative paths and the now changed working directory?</p>

<p>Am I right? and how can i avoid this?</p>

<p>greetings</p>

<p>Edit:
Loading code:</p>

<pre><code>path = os.path.join('..', 'data', 'gfx',  filename)
blah = pygame.image.load(path).convert_alpha()
</code></pre>
