open application python code example
Example 1: open applications by python
dir = 'C:\\myprogram.exe'
import os
os.startfile(dir)
os.system(dir)
import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
Example 2: how to close an application from python
import os
os.close(filename);