title: is python glob.glob '\' robust across different OS win/unix/mac?
body: <p>I have the following code:</p>
  
  <pre><code>import glob
  files = ".\database\*.txt"
  for pathname in glob.glob(files):
      print pathname
  </code></pre>
  
  <p>I understand in different OS directory are represented differently. So I am wondering is ".\database*.txt" robust across different OS?</p>
  
  <p>I tried</p>
  
  <pre><code>files = "./database/*.txt"
  </code></pre>
  
  <p>and it also worked.</p>
  
  <p>If I want to make my code robust, what is the best way to do it?</p>