From f4c315cda816beec32a670b7278cf6de50fcf87c Mon Sep 17 00:00:00 2001 From: Lucas Serrano Date: Sun, 17 Nov 2013 00:43:54 +0100 Subject: [PATCH] =?UTF-8?q?[printer=5Fwatch]=20On=20=C3=A9crit=20dans=20va?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- impression/printer_watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impression/printer_watch.py b/impression/printer_watch.py index 45afb28f..bf6db1c2 100755 --- a/impression/printer_watch.py +++ b/impression/printer_watch.py @@ -9,7 +9,7 @@ from md5 import md5 successfuly_imported = False try: - with open("printer_watch_status.json", "r") as to_load: + with open("/usr/scripts/var/impression/printer_watch_status.json", "r") as to_load: extracted_dict = json.load(to_load) try: last_status = extracted_dict[u"last_status"] @@ -58,5 +58,5 @@ elif status == ('2',) and successfuly_imported and last_status == '5': else: message_id = None -with open("printer_watch_status.json", "w") as dump_file: +with open("/usr/scripts/var/impression/printer_watch_status.json", "w") as dump_file: json.dump({u"last_status": status[0], u"message_id": message_id}, dump_file)