Some notes and file clean up. JJSV Templates
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,10 +3,10 @@ import glob
|
||||
import os
|
||||
from datetime import date
|
||||
|
||||
currentdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Walmart_Screenshots/"
|
||||
|
||||
def find_pictures():
|
||||
def find_pictures(currentdir):
|
||||
files = []
|
||||
currentdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Walmart_Screenshots/"
|
||||
listfiles = glob.glob(currentdir + "*.png")
|
||||
for file in listfiles:
|
||||
files.append(os.path.basename(file))
|
||||
@ -50,7 +50,6 @@ def process_pictures(new_list, resource_title, currentdir):
|
||||
save_all=True,
|
||||
append_images=image_list,
|
||||
)
|
||||
delete_originals(currentdir)
|
||||
|
||||
|
||||
def delete_originals(currentdir):
|
||||
@ -63,5 +62,7 @@ def delete_originals(currentdir):
|
||||
finally:
|
||||
print("All Done")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
find_pictures()
|
||||
find_pictures(currentdir)
|
||||
delete_originals(currentdir)
|
||||
|
||||
Reference in New Issue
Block a user