title: Adding Function from another python file
body: <p>I'm a python beginner and I'm trying to read a function from one python file into another.  However I am getting stuck with an import error.  My directories are like this:</p>
  <p>test folder</p>
  <ul>
  <li>plot.py</li>
  <li>setup folder containing (mapsetup.py, empty __init __.py file)</li>
  </ul>
  <p>in <strong>mapsetup.py</strong> I have the following code:</p>
  <pre><code>def read_files (project_name):   
    extent_dir =(os.path.join (dir['extents_dir'],project_name, 'extent_'  + project_name + '.shp') )
  </code></pre>
  <p>and then in <strong>plot.py</strong> I have this</p>
  <pre><code>project_name = str(input())
  
  sys.path.append('/Users/Documents/python/test/setup')
  from setup.mapsetup import read_files
  </code></pre>
  <p>but I keep getting this error:</p>
  <blockquote>
  <p>ImportError: cannot import name 'read_files' from 'setup.mapsetup'</p>
  </blockquote>