|
|
@ -106,6 +106,7 @@ class Photography(Bureau):
|
|
|
|
for i, f in enumerate(filelist):
|
|
|
|
for i, f in enumerate(filelist):
|
|
|
|
filelist[i] = os.path.join("/tmp/webcam", f)
|
|
|
|
filelist[i] = os.path.join("/tmp/webcam", f)
|
|
|
|
newest = max(filelist, key=lambda x: os.stat(x).st_mtime)
|
|
|
|
newest = max(filelist, key=lambda x: os.stat(x).st_mtime)
|
|
|
|
|
|
|
|
print("copying ", newest, "to", tmpimg.name)
|
|
|
|
shutil.copyfile(newest, tmpimg.name)
|
|
|
|
shutil.copyfile(newest, tmpimg.name)
|
|
|
|
|
|
|
|
|
|
|
|
# crop
|
|
|
|
# crop
|
|
|
|