From 4ced780d5438fa3369e4ab6d48f5257a9af4dcc4 Mon Sep 17 00:00:00 2001 From: n07070 Date: Sun, 15 May 2022 23:48:44 +0200 Subject: [PATCH] Added file deletion after printing. --- src/printer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/printer.py b/src/printer.py index d0a840b..2aeb209 100644 --- a/src/printer.py +++ b/src/printer.py @@ -171,6 +171,8 @@ class Printer(object): self.printer.cut() self.printer.close() self.app.logger.debug("Printed an image : " + str(path)) + os.remove(path) + self.app.logger.debug("Removed image.") return True except Exception as e: self.printer.close()