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 1
1
import os
2
2
import playsound
3
- import time
4
3
from time import sleep
5
- import sys
6
4
import multiprocessing
7
5
8
6
9
7
def 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' )
17
15
18
- if inp == 'y' :
19
- print ("yes" )
20
- p .terminate ()
21
- continue
16
+ if inp == 'y' :
17
+ print ("yes" )
18
+ p .terminate ()
19
+ continue
22
20
23
21
24
22
if __name__ == "__main__" :
25
- remind ()
23
+ remind ()
You can’t perform that action at this time.
0 commit comments