title: What is the best practice for importing modules: absolute paths or relative paths?
body: <p>So I was working on a project where I defined all paths to other Python modules as absolute paths:</p>
  
  <pre><code>import sys
  sys.path.append('/home/user123/my_project/utilities')
  import file_utilities
  </code></pre>
  
  <p>But then I had move the project to a different folder, which broke everything. I had to manually edit all paths to account for the folder change.</p>
  
  <p>Is my initial use of absolute paths a bad choice? I initially avoided relative paths because I thought it would quickly become ugly:</p>
  
  <pre><code>import sys
  sys.path.append('../../../../utilities')
  import file_utilities
  </code></pre>
  
  <p>What is the best practice?</p>