code: def restart():
      
      python = sys.executable
      os.execl(python, python, * sys.argv)
docs: Restart the application the same way it was started
  
      :returns: None
      :rtype: None
      :raises: SystemExit