|
|
|
|
@ -9,16 +9,16 @@ from shutil import move
|
|
|
|
|
import sqlite3
|
|
|
|
|
|
|
|
|
|
# update database residing here
|
|
|
|
|
DB_LOCATION = "../../testbox/photovoter.dblite" # Q: any allowances for this being not OUR database?
|
|
|
|
|
DB_LOCATION = "db/photovoter.dblite" # Q: any allowances for this being not OUR database?
|
|
|
|
|
# place compressed images here (needs to exist)
|
|
|
|
|
DEST_STRUNK = "../../testbox/image/"
|
|
|
|
|
DEST_STRUNK = "db/image/"
|
|
|
|
|
# move originals here (needs to exist)
|
|
|
|
|
DEST_ORIGINAL = "../../testbox/original/"
|
|
|
|
|
DEST_ORIGINAL = "db/original/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def usage():
|
|
|
|
|
"""Brief usage explanation"""
|
|
|
|
|
print("USAGE: ./{name} /path/to/images".format(name=argv[0]), file=stderr)
|
|
|
|
|
print("USAGE: python {name} /path/to/images".format(name=argv[0]), file=stderr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def process_pictures():
|
|
|
|
|
|