title: (os.path.dirname(__file__)) not working in FreeBSD
body: <p>I want to set the path to the images dir..in my Django project...it is working fine but when i run the script on FreeBSD it is not working...</p>
  
  <pre><code>import os 
  
  imagesDirPath = (os.path.dirname(__file__)) + "/couponRestApiApp/stores/images/"
  print imagesDirPath
  
  output: /home/vaibhav/TRAC/coupon-rest-api/couponRestApi/couponRestApiApp/stores/images/
  </code></pre>
  
  <p>Above is working on my system but when tried it on freeBSD i get:</p>
  
  <pre><code>/couponRestApiApp/stores/images/
  </code></pre>
  
  <p>but it should be </p>
  
  <pre><code>/home/vaibhav/coupon-rest-api/couponRestApi/couponRestApiApp/stores/images/
  </code></pre>
  
  <p>Can someone tell me what is wrong...</p>