unable to locate the text file
<p>So I have the directory struture like this</p>

<pre><code>  Execute_directory--&gt; execute.py
  |
  Algorithm ---&gt; algorithm.py
            |
            |--&gt; data.txt
</code></pre>

<p>So I am inside execute directory and have included the following path to my python path.</p>

<pre><code>sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../Algorithm")
</code></pre>

<p>algorithm.py has a code to read data.txt</p>

<p>So when I run execute.py , execute.py calls algorithm.py which in turns read data.txt
I thought that above line should have done the job. it is able to find algorithm.py but not data.txt??</p>

<pre><code>         IOError: [Errno 2] No such file or directory:'data.txt'
</code></pre>

<p>Any clue what I am doing wrong ??
Thanks</p>
