title: Importing file of same file and function name in python
body: <pre><code>src
   |
    -- Country
       |
        -- test_file.py -&gt; test_file(function)
    -- State
       |
        -- test_file.py -&gt; i want to run this file
  </code></pre>
  
  <p>I have to run the test_file in State which is the present working directory. I have to import the function test_file from test_file in country.</p>
  
  <p>Using the path</p>
  
  <pre><code>import sys
  sys.path.append('../Country')
  from test_file import *
  
  print test_file()
  </code></pre>
  
  <p>When i run the file. It says role_name function not found.
  It is not able to find the function.
  But if i change the name of the file in Country from test_file to some other name, Its working fine.
  I am thinking this problem has to do with some kind of ambiguousness.</p>
  
  <p>I need to have the same name for both files.
  Is there another way out for this problem?</p>