Skip to content

Commit

Permalink
adding .pyde fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
villares committed Oct 13, 2023
1 parent 0bd6f46 commit c891ee2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin_scripts/folder_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c891ee2

Please sign in to comment.