title: How to explicitly import a global python package instead of from local file
body: <p>I have exactly opposite issue described <a href="https://stackoverflow.com/q/11489330/2215679">here</a>.</p>
  
  <p>In my case I have:</p>
  
  <p>logging.py</p>
  
  <pre><code>import logging
  log = logging.getLogger(..)
  </code></pre>
  
  <p>I got this error:</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'getLogger'
  </code></pre>
  
  <p>This happens only on project with python 2.7 run under Pyramid framework.</p>
  
  <p>When I run it in another project, python 3.6 without any framework it works perfect.</p>
  
  <p>PS. there is a <a href="https://stackoverflow.com/questions/5299199/python-importing-a-global-site-packages-module-rather-than-the-file-of-the-sam">similar issue</a>, but it is different case, in my case it is global package that is not present in any <code>sys.path</code> folder. So none of solutions from that question worked for me.
  Please don't mark this issue as duplicated.</p>