title: ImportError: cannot import name. Can't figure out why
body: <p>I have three python files, in a folder.</p>
  
  <p>My folder structure looks like so:</p>
  
  <pre><code>RenderAddon (folder)
  ---- __init__.py
  ---- config.py
  ---- QuickRenderAddon.py
  </code></pre>
  
  <p>I try to run <code>__init__.py</code>, but I get this error:</p>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>"RenderAddon\__init__.py", line 22
      from . import config
      ImportError: cannot import name 'config'
  </code></pre>
  
  <p><strong>Complete traceback:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "D:\Programs\Blender_271\2.71\scripts\modules\addon_utils.py", line 299, in enable
      mod = __import__(module_name)
    File "C:\Users\EinarAune\AppData\Roaming\Blender Foundation\Blender\2.71\scripts\addons\RenderAddon\__init__.py", line 22, in &lt;module&gt;
      from . import config
  ImportError: cannot import name 'config'
  </code></pre>
  
  <p>I can't figure out why. What's wrong?</p>
  
  <hr>
  
  <p><strong>__init__.py</strong></p>
  
  <pre><code>if "bpy" in locals():
      import imp
      imp.reload(config)
      imp.reload(QuickRenderAddon)
      print("Reloaded multifiles")
  else:
      from . import config
      from . import QuickRenderAddon
      print("Imported multifiles")
  
  import bpy
  import os
  </code></pre>
  
  <p><strong>QuickRenderAddon.py</strong></p>
  
  <pre><code>import bpy
  import os
  from . import config
  </code></pre>
  
  <p>No imports in <strong>config.py</strong></p>