File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
setup (
13
13
name = name ,
14
- version = '1.17 ' ,
14
+ version = '1.18 ' ,
15
15
description = 'Program to run plugins to inhibit system '
16
16
'sleep/suspend/hibernate' ,
17
17
long_description = here .joinpath ('README.md' ).read_text (),
Original file line number Diff line number Diff line change @@ -201,12 +201,15 @@ def init():
201
201
plugin_dir , inhibitor_prog )
202
202
for index , plugin in enumerate (plugins , 1 )]
203
203
204
- async def main ():
204
+ async def run ():
205
205
'Main entry'
206
206
tasks = init ()
207
207
208
208
# Wait for each plugin task to finish (i.e. wait forever)
209
209
await asyncio .gather (* (t .run () for t in tasks ))
210
210
211
+ def main ():
212
+ asyncio .run (run ())
213
+
211
214
if __name__ == '__main__' :
212
- asyncio . run ( main (), debug = True )
215
+ main ()
You can’t perform that action at this time.
0 commit comments