NameError in Python interpreter <p>Here is my init:</p> <pre><code>import os, sys sys.path.append(os.path.abspath("..")) from myModule import * </code></pre> <p>Then in command line, same directory:</p> <pre><code>Python 2.7.4 (default, Sep 26 2013, 03:20:26) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; c = myClass Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; NameError: name 'myClass' is not defined </code></pre>