title: importing a module in Idle shell
body: <p>I'm trying to learn python and I'm having trouble importing a module.
  I have a .pyc file that I'm trying to import into idle shell called dfa.pyc</p>
  
  <p>I have the file in a folder called xyz.
  I navigate to this folder using:</p>
  
  <pre><code>    os.chdir('/Users/xxx/Desktop/xyz')
  </code></pre>
  
  <p>So now, if I try to run the command:</p>
  
  <pre><code>    from dfa import *
  </code></pre>
  
  <p>i get the error: </p>
  
  <pre><code>    ImportError: No module named dfa
  </code></pre>
  
  <p>If i run the command: </p>
  
  <pre><code>    os.path.isfile('dfa.pyc') 
  </code></pre>
  
  <p>it returns true.</p>
  
  <p>Can someone explain how i can get the dfa.pyc file imported?</p>
  
  <p>Thanks</p>