title: Import method from __init__.py
body: <p>Having some issues with importing modules in python. This is my folder structure</p>
  
  <pre class="lang-none prettyprint-override"><code>my_app/
      app.py
      __init__.py (I want to import a function from this file)
      folder1/
          __init.py
          method1.py
      folder2/
          __init__.py
          method.py
  </code></pre>
  
  <p>In my root <code>__init__.py</code> I have this function</p>
  
  <pre><code>def want_to_be_run_elsewhere():
      pass
  </code></pre>
  
  <p>In my app.py, I want to import this function and run it when I start my application, but I'm unsure how to do it.</p>
  
  <pre><code>from my_app import want_to_be_run_elsewhere
  </code></pre>
  
  <p>This throws a no module named my_app</p>
  
  <p>From what I can tell, I have all the necessary <code>__init__.py</code> files, so maybe it could be sys.path related?</p>
  
  <p>I've read some similar threads on here but I haven't been able to solve this.</p>