How to call a .exe file in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to call a .exe file in python

11th Sep 2018, 9:53 AM
abinaya
abinaya - avatar
2 Answers
+ 2
import os os.system("whatever.exe") # something like that. if not os module, then subprocess module # also you'll likely need to include the file path
11th Sep 2018, 11:24 AM
Ahri Fox
Ahri Fox - avatar
0
TQ
11th Sep 2018, 3:41 PM
abinaya
abinaya - avatar