solaar: don't close temp file until after CLI call
This commit is contained in:
parent
62e8aacd9f
commit
789d35450c
|
@ -162,10 +162,11 @@ def main():
|
||||||
temp.close()
|
temp.close()
|
||||||
return
|
return
|
||||||
if args.action:
|
if args.action:
|
||||||
|
# if any argument, run comandline and exit
|
||||||
|
result = cli.run(args.action, args.hidraw_path)
|
||||||
# explicit close before return
|
# explicit close before return
|
||||||
temp.close()
|
temp.close()
|
||||||
# if any argument, run comandline and exit
|
return result
|
||||||
return cli.run(args.action, args.hidraw_path)
|
|
||||||
|
|
||||||
gi = _require("gi", "python3-gi (in Ubuntu) or python3-gobject (in Fedora)")
|
gi = _require("gi", "python3-gi (in Ubuntu) or python3-gobject (in Fedora)")
|
||||||
_require("gi.repository.Gtk", "gir1.2-gtk-3.0", gi, "Gtk", "3.0")
|
_require("gi.repository.Gtk", "gir1.2-gtk-3.0", gi, "Gtk", "3.0")
|
||||||
|
|
Loading…
Reference in New Issue