Skip to content

Commit

Permalink
Easy to rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 17, 2018
1 parent 555006d commit 7c81e83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postprocess
Expand Up @@ -46,7 +46,8 @@ def crop(img, marging_horizontal=25, maring_vertical=25):

def save(root_folder, img, folder):
if on.environ.get("PROGRESS") == "TRUE":
os.makedirs(os.path.join(root_folder, folder))
if not os.path.exists(os.path.join(root_folder, folder)):
os.makedirs(os.path.join(root_folder, folder))
shutil.copyfile(img, os.path.join(root_folder, folder, os.path.basename(img)))


Expand Down

0 comments on commit 7c81e83

Please sign in to comment.