Skip to content

Commit

Permalink
renaming SELECTION constant SAVED_SELECTION
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Oct 13, 2023
1 parent 8c609ab commit 7ff1da0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin_scripts/folder_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import difflib
from pathlib import Path

SELECTION = Path(__file__).parent / 'folder_browser_selection.txt'
SAVED_SELECTION = Path(__file__).parent / 'folder_browser_selection.txt'

image_paths = []
img = None
Expand All @@ -26,7 +26,7 @@
def setup():
py5.size(1800, 1000)
setup_folder_diff()
image_paths[:] = py5.load_strings(SELECTION)
image_paths[:] = py5.load_strings(SAVED_SELECTION)
walk_images(0)

def setup_folder_diff():
Expand Down Expand Up @@ -129,7 +129,7 @@ def key_pressed():
if py5.key == 'o':
py5.select_folder('Select a folder', list_files)
elif py5.key == 'u':
image_paths[:] = py5.load_strings(SELECTION)
image_paths[:] = py5.load_strings(SAVED_SELECTION)
previous_code = ''
current = 0
walk_images(0)
Expand Down

0 comments on commit 7ff1da0

Please sign in to comment.