title: Module throws name error when imported from package
body: <p>I'm trying to import a module that contains a single line: <code>import logging</code>, into my web2py project. When I try to import the module from within a package called <code>mymodules</code>, I get a <code>&lt;type 'exceptions.NameError'&gt; name 'logging' is not defined error</code>, but When I take the module out of the package and import it directly, it works fine.</p>
  
  <p>mymodule.py:</p>
  
  <pre><code>import logging
  </code></pre>
  
  <p>Importing it from top-level modules directory:<br>
  <code>import mymodule</code> - works fine</p>
  
  <p>Importing from a package:<br>
  <code>from mymodules import mymodule</code> - get the name error</p>
  
  <p>There's nothing wrong with the package - I have other modules in there that I import with no problem. Don't have a clue as to why this is happening.</p>