title: Can python detect which OS is it running under?
body: <p>Can python detect OS and then contruct a if/else statement for File System.</p>
  
  <p>I would need to replace  C:\CobaltRCX\ in Fn string with the FileSys string. </p>
  
  <pre><code>import os.path, csv
  from time import strftime
  
  if os.path.?????:## Windows
     FileSys = r"C:\\working\\" 
  else:   ##linux   
     FileSys = r"\\working\\" 
  
  y=(strftime("%y%m%d"))
  Fn = (r"C:\\working\\Setup%s.csv" %y)
  </code></pre>