File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 11import os
22import playsound
3- import time
43from time import sleep
5- import sys
64import multiprocessing
75
86
97def remind ():
10- startTime = time . time ()
11- while True :
12- sleep ( 20 * 60 )
13- os . popen ( 'osascript -e "set Volume 6"' )
14- p = multiprocessing . Process ( target = playsound .playsound , args = ("danger.mp3" ,))
15- p .start ()
16- inp = input ('Dismiss? y|n' )
8+ while True :
9+ sleep ( 20 * 60 )
10+ os . popen ( 'osascript -e "set Volume 6"' )
11+ p = multiprocessing . Process (
12+ target = playsound .playsound , args = ("danger.mp3" ,))
13+ p .start ()
14+ inp = input ('Dismiss? y|n' )
1715
18- if inp == 'y' :
19- print ("yes" )
20- p .terminate ()
21- continue
16+ if inp == 'y' :
17+ print ("yes" )
18+ p .terminate ()
19+ continue
2220
2321
2422if __name__ == "__main__" :
25- remind ()
23+ remind ()
You can’t perform that action at this time.
0 commit comments