-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBeforeRun.py
26 lines (25 loc) · 867 Bytes
/
BeforeRun.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
from os import system as Command
import time as Time
c = False
while c == False:
M = str(input("Major? Y/N "))
if M == "y" or M == "Y":
Ms = int(input("Delay mins: ")) * 60
Ss = int(input("Delay secs: "))
#Command("rcssmonitor --auto-reconnect-mode on --auto-reconnect-wait 2 &")
total = Ms + Ss
Time.sleep(total)
print("Server will run with major setting")
Command("./MajorTournament.sh")
exit()
if M == "n" or M == "N":
Ms = int(input("Delay mins: ")) * 60
Ss = int(input("Delay secs: "))
#Command("rcssmonitor --auto-reconnect-mode on --auto-reconnect-wait 2 &")
total = Ms + Ss
Time.sleep(total)
print("Server will run with starter setting")
Command("./StarterTournament.sh")
exit()
else:
print("Wrong input")