-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdawkside.py
54 lines (42 loc) · 1.21 KB
/
dawkside.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
################################
## ##
## Dawkside ##
## by Patrick Tremblay ##
## ##
## Under some license. ##
## « If you're blind then ##
## drive safely. » ##
## ##
################################
# Imports
import psutil
import sys
import os
import time
from classes.main import Main
from functions.speak import speak
from functions.daw_loader import daw_loader
from functions.device_loader import device_loader
if __name__ == "__main__":
os.system('cls')
speak("Dawkside is loading using the following devices :\n\n", printout=True)
dawkside_count = 0
for process in psutil.process_iter(['pid', 'name']):
if process.info['name'] == 'dawkside.exe':
dawkside_count += 1
if dawkside_count > 1:
speak("An instance of Dawkside is already running. Exiting.")
time.sleep(2)
sys.exit(0)
# Initialize Main class for global settings
main = Main()
#os.system('cls')
main.play_sound('intro')
# Load DAWs
daw_loader(main)
# Load devices
device_loader(main)
main.locked = [False, '']
# Intro
output = f"\nWelcome to Dawkside.\nWaiting for daws.\n"
speak(output, printout=True)