title: Opening file from path without knowing full file name (python)
body: <p>I am trying to open a file using the full path, but I don't know the complete name of the file, just a unique string within it. </p>
  
  <pre><code>i = identifier
  doc = open(r'C:\my\path\*{0}*.txt'.format(i), 'r')
  </code></pre>
  
  <p>Now obviously this doesn't work because I'm trying to use the wildcard along with the raw string. I have had a lot of trouble in the past trying to use file paths <em>without</em> preceding them with 'r', so I'm not sure of the best way to handle the incomplete file name. Should I just forget raw string notation and use '\\\\' for the file path? </p>