title: Is module __file__ attribute absolute or relative?
body: <p>I'm having trouble understanding <code>__file__</code>. From what I understand, <code>__file__</code> returns the absolute path from which the module was loaded. </p>
  
  <p>I'm having problem producing this: I have a <code>abc.py</code> with one statement <code>print __file__</code>, running from <code>/d/projects/</code> <code>python abc.py</code> returns <code>abc.py</code>. running from <code>/d/</code> returns <code>projects/abc.py</code>. Any reasons why?</p>