How to import the module in Python
<p>I'm trying to use <code>importlib.import_module</code> in python 2.7.2 and run into the strange error.</p>

<p>Consider the following dir structure:</p>

<pre>
    a
    |
    + - __init__.py
      - b
        |
        + - __init__.py
          - c.py
</pre>

<p><code>a/b/__init__.py</code> has the following code:</p>

<pre>
    import importlib

    mod = importlib.import_module("c")
</pre>

<p>In real like <code>"c"</code> is a variable of course.
Trying to import <code>a.b</code> yields the following error:</p>

<pre>
    >>> import a.b
    Traceback (most recent call last):
      File "", line 1, in 
      File "a/b/__init__.py", line 3, in 
        mod = importlib.import_module("c")
      File "/opt/Python-2.7.2/lib/python2.7/importlib/__init__.py", line 37, in   import_module
        __import__(name)
    ImportError: No module named c
</pre>

<p>What am I missing?</p>

<p>Thanks.</p>
