Windows: import osos.startfile("path") Linux: import subprocesssubprocess.Popen(['xdg-open', "path"])