os.path.join(os.path.dirname(__file__)) returns nothing
<p>I have a directory structure like this:</p>

<pre><code>--bin/
--lib/
--data/
</code></pre>

<p>So basically, the executable script is in bin and it calls the files in lib.. but lib has to communicate with the text files in data</p>

<p>Usually this use to work:
TO read a file in usually i use to do this</p>

<pre><code>file_path =  os.path.join(os.path.dirname(__file__))+ "/../" +"data/"+filename
f = open(file_path,"r")
</code></pre>

<p>But, in this instance, if i do:</p>

<pre><code>  print os.path.join(os.path.dirname(__file__))
  returns nothing?
</code></pre>

<p>What am i doing wrong..
Thanks</p>
