title: can't access imported functions in Python
body: <p>Can anyone please help me with this ? </p>
  
  <p>I am moving on using PyDev Aptana for developing python codes. Here is my project structure under PyDev IDE :</p>
  
  <pre><code>/testProject
          /src
              /testModule  
              __init__.py
              testMod.py
          main.py
  </code></pre>
  
  <p>testMod.py file :</p>
  
  <pre><code>def test(n): 
      print "echo"+n 
  </code></pre>
  
  <p>main.py file :</p>
  
  <pre><code>import testModule
  testModule.test(4) 
  </code></pre>
  
  <p>When I try to run this in PyDev , it gave me this error at main.py , line 2 ( where test(4) is called):</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'test'
  </code></pre>
  
  <p>I change main.py to :</p>
  
  <pre><code>import testModule.test
  testModule.test(4)  
  </code></pre>
  
  <p>still gives me error <code>'module' object not callable!</code></p>
  
  <p>What is wrong with this ??</p>