-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopen_app.py
29 lines (22 loc) · 874 Bytes
/
open_app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import assistant_speaks as ass
import os
def open_application(input):
if "chrome" in input:
ass.assistant_speaks("Google Chrome")
os.startfile(r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe')
return
elif "firefox" in input or "mozilla" in input:
ass.assistant_speaks("Opening Mozilla Firefox")
os.startfile(r'C:\Program Files\Firefox Developer Edition\firefox.exe')
return
elif "code" in input:
ass.assistant_speaks("Opening Microsoft visual Code")
os.startfile(r'C:\Users\ashut\AppData\Local\Programs\Microsoft VS Code\Code.exe')
return
elif "hatch" in input:
ass.assistant_speaks("Opening Hatch File")
os.startfile(r'H:')
return
else:
ass.assistant_speaks("Application not available")
return