delete tmpfile on close for cli

This commit is contained in:
Jan Fader 2024-12-29 00:17:42 +01:00 committed by Peter F. Patel-Schneider
parent 7e9babdc79
commit e6c833f635
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ def main():
if not args:
return
if args.action:
# explicit close before return
temp.close()
# if any argument, run comandline and exit
return cli.run(args.action, args.hidraw_path)