title: How to import functions from other projects in Python?
body: <p>I have some code in a project which I'd like to reuse in another project. What do I need to do (in both folders) so that I can do this?</p>
  
  <p>The directory structure is something like:</p>
  
  <ul>
  <li>Foo
  <ul>
  <li>Project1
  <ul>
  <li>file1.py</li>
  <li>file2.py</li>
  </ul></li>
  </ul></li>
  <li>Bar
  <ul>
  <li>Project2
  <ul>
  <li>fileX.py</li>
  <li>fileY.py</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I want to use functions from file1.py and file2.py in fileX.py and fileY.py.</p>