some debug output for webcam

workspace
Brendan Howell 8 years ago
parent f8cf608c27
commit 92da0895a3

@ -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

Loading…
Cancel
Save