Skip to content

Commit e36f490

Browse files
authored
Update main.py
1 parent 98920f8 commit e36f490

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Launching other Programs/main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
import os
33
import subprocess
44

5-
program="calculator path"
6-
subprocess.Popen(program)
5+
program=input("Enter path of your program: ")
6+
7+
try:
8+
subprocess.Popen(program)
9+
except:
10+
print("Error opening program!")

0 commit comments

Comments
 (0)