xxxxxxxxxx
# pip install AppOpener
from AppOpener import open
open("program_name")
xxxxxxxxxx
dir = 'C:\\myprogram.exe'
import os
os.startfile(dir)
os.system(dir)
import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
xxxxxxxxxx
import subprocess
subprocess.Popen("C:\\Windows\\System32\\notepad.exe") #This will launch notepad But you can enter the path of an executable and this will launch it.
xxxxxxxxxx
# pip install AppOpener
from AppOpener import run
run("whatsapp") # Opens whatsapp if installed
# run multiple applications
run("whatsapp, telegram")