title: Python importing everything from module subdirectory
body: <p>I'm trying to import all files from a sub-directory, so I figured I could write <code>__init__.py</code> in that sub-directory to import the files. However, when I do this it does not seem to import anything.</p>
  
  <p>File structure:</p>
  
  <pre><code>prog.py
  module/
      __init__.py
      code.py
  </code></pre>
  
  <p>Code for <code>prog.py</code>: <code>pass</code></p>
  
  <p>Code for <code>__init__.py</code>: <code>import code</code></p>
  
  <p>Code for <code>code.py</code>: <code>print('hello')</code></p>
  
  <p>When I run prog.py nothing happens. Why does it not print <code>hello</code>, and is there a better way to easily import everything from a sub-directory?</p>