title: Changing a path from a directory to a single input file
body: <pre><code>import os
  path = 'c:\users\name\desktop\project\input_samples'
  
  for xyz_file in os.listdir(path):
      if xyz_file.endswith('xyz'):
      (operations of function here)
  </code></pre>
  
  <p>In the folder 'input samples' I have multiple .xyz files (coordinate files). I'm trying to create a function that accepts a path to one input xyz file and not the directory. </p>
  
  <p>I don't want it to loop over the files, just process a single file. I want to do it without having to remove all the files except 1 in the directory path, but i'm not sure how to redefine the function.</p>
  
  <p>Any help would be much appreciated :)</p>