code: def open_file(path):
      
      if sys.platform=='win32':
          os.startfile(path)
          #subprocess.Popen(['start', path], shell= True)
      
      elif sys.platform=='darwin':
          subprocess.Popen(['open', path])
      
      else:
          try:
              subprocess.Popen(['xdg-open', path])
          except OSError:
              pass
docs: Opens Explorer/Finder with given path, depending on platform