Answers for "can i open applications with python"

2

open applications by python

dir = 'C:\\myprogram.exe'

import os
os.startfile(dir)
os.system(dir)

import subprocess
subprocess.Popen([dir])
subprocess.call(dir)
Posted by: Guest on July-20-2020

Code answers related to "can i open applications with python"

Python Answers by Framework

Browse Popular Code Answers by Language