title: How to get filepath in Python using the filename?
body: <p>I know the name of the file stored on my pc which I want to open in a web page application. I need the to send the filepath to a html file for the same. So I want to get filepath using the filename in Python or HTML. </p>
  
  <p>I tried using the os.path.dirname(filename) in Python but it didn't work because the attribute is supposed to be a path for this function.</p>