-1

i am wondering if it is possible to open an app with python. I did some googling but i did not find anything that works. I tried:

import os
os.system("Settings") 

and

import subprocess
subprocess.Popen("C:\Program Files (x86)\Steam\steam.exe")

but these do not work and i cant find anything else

Thanks in advance!

1 Answers1

1

Your code didn't work because the format of the path is wrong

import subprocess
subprocess.Popen("C:\\Program Files (x86)\\Steam\\steam.exe")

or

import subprocess
subprocess.Popen(r"C:\Program Files (x86)\Steam\steam.exe")
Rohith Nambiar
  • 1,455
  • 2
  • 7
  • 24