From c891ee2254c435d0fff3fd114a137ccc899964eb Mon Sep 17 00:00:00 2001 From: Alexandre B A Villares <3694604+villares@users.noreply.github.com> Date: Fri, 13 Oct 2023 17:28:06 -0300 Subject: [PATCH] adding .pyde fallback --- admin_scripts/folder_diff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin_scripts/folder_diff.py b/admin_scripts/folder_diff.py index 1f2bba68..1bc13a1e 100755 --- a/admin_scripts/folder_diff.py +++ b/admin_scripts/folder_diff.py @@ -69,6 +69,8 @@ def get_img_and_code(path, resize=None): img, code = load_image_and_data(image_path, resize) if len(code) == 0: code_path = path / (path.name + '.py') + if not code_path.is_file(): + code_path = path / (path.name + '.pyde') code = code_path.read_text() except Exception as e: print(str(e))