title: Compare two filenames in different folders
body: <p>I have two files in different locations: <code>/tmp/helpers_image.tif</code> and <code>/tmp/outputs/helpers_image.qml</code>. I want to compare their names before the extension.</p>
  
  <p>How can I compare the files in the those two folders?</p>
  
  <p>If these files were in the same folder I could use: </p>
  
  <pre><code>t1 = 'helpers_image.qml'
  t1_list= t1.split('.') 
  t1_list[0] == t2_list[0]
  </code></pre>
  
  <p>...assuming the other list would be called <code>t2</code>.</p>