From 92da0895a366b1c93d91ac83035d1a666fdfd193 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 16 May 2017 12:03:00 +0200 Subject: [PATCH] some debug output for webcam --- screenless/bureau/photography/photography.py | 1 + 1 file changed, 1 insertion(+) diff --git a/screenless/bureau/photography/photography.py b/screenless/bureau/photography/photography.py index 32b376a..d9e8833 100644 --- a/screenless/bureau/photography/photography.py +++ b/screenless/bureau/photography/photography.py @@ -106,6 +106,7 @@ class Photography(Bureau): for i, f in enumerate(filelist): filelist[i] = os.path.join("/tmp/webcam", f) newest = max(filelist, key=lambda x: os.stat(x).st_mtime) + print("copying ", newest, "to", tmpimg.name) shutil.copyfile(newest, tmpimg.name) # crop