title: Why does module.__file__ return None?
body: <p>I've added a local directory to my system path. When I import it, it's fine but when I do</p>
  <pre><code>import local_repo 
  print(local_repo.__file__) 
  </code></pre>
  <p>it returns None.</p>
  <p>How do I get it to return the path...</p>
  <p>P.S. When I try this with other modules works fine - returns the path - for example</p>
  <pre><code>import pathlib 
  print(pathlib.__file__)
  
  &gt;&gt;&gt;&gt; &quot;C:\Python38\lib\pathlib.py&quot;
  </code></pre>