title: How to open a file on mac osx in python
body: <p>I am trying to open a file on mac in python using eclipse. </p>
  
  <pre><code>FileName = "/Users/fis/Desktop/installation_guide.txt"
  ss = subprocess.Popen(FileName, shell=True)
  ss.communicate()
  </code></pre>
  
  <p>And also <code>os.popen(FileName)</code>. But file is not opening. These codes work fine in windows. But, I don't know whats the problem with mac. I want to open a file just like double-clicking on windows to open a file and not like reading the content of file and printing in console. File is present on Desktop location on mac</p>