title: How to open an application in Python, and then let the rest of the script run?
body: <p>I have been trying to create a script which reloads a web browser called Midori if the internet flickers. But, it seems only to work if I open Midori through the CLI - otherwise, the program crashes after I reload it. I have decided that the best idea is thus to have the script open Midori through the <code>subprocess</code> module. So, I put this as one of the first arguments in my code:</p>
  
  <pre><code>import subprocess as sub
  sub.call(["midori"])
  </code></pre>
  
  <p>The browser opens, but the rest of the program freezes until I quit Midori. I have tried to use threading, but it doesn't seem to work.</p>
  
  <p>Is there any way to open an application through Python, and then let the rest of the script continue to run once said application has been opened?</p>