Skip to content

Commit 931ea7e

Browse files
author
John Kraus
committed
refactor step01
1 parent 146ad0c commit 931ea7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/step01_add_dimensions_to_original_image_names.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
def rename_images_add_dimensions(start_dir, renamed_dir, test=False):
1616
if test:
1717
print('cwd =', os.getcwd())
18+
if not os.path.exists(start_dir):
19+
os.makedirs(start_dir)
1820
if not os.path.exists(renamed_dir):
1921
os.makedirs(renamed_dir)
2022
for filename in os.listdir(start_dir):

0 commit comments

Comments
 (0)