title: How do I allow a user to select a file?
body: <p>Right now, I have this line in my code to hard-code the directory path</p>
  
  <pre><code>dir_path = '/home/user/pywork'
  </code></pre>
  
  <p>but I would rather let the user select it herself using a construct similar to R's <code>scan(choose.files())</code>. </p>
  
  <p>How do I go about it?</p>
  
  <p>Thanks,</p>