From 559b6458c0553ac788d265a62e91e2bef744318c Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Wed, 28 Jul 2021 02:13:30 +0300 Subject: [PATCH] fix(examples) remove symlinks (#2406) Remove symlinks from Python examples because the JS simulator doesn't follow them and sees the target filename instead --- examples/others/snapshot/lv_example_snapshot_1.py | 4 ++-- examples/widgets/btnmatrix/lv_example_btnmatrix_2.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/others/snapshot/lv_example_snapshot_1.py b/examples/others/snapshot/lv_example_snapshot_1.py index 59130584d..4f9e1fb76 100644 --- a/examples/others/snapshot/lv_example_snapshot_1.py +++ b/examples/others/snapshot/lv_example_snapshot_1.py @@ -18,10 +18,10 @@ label.set_text(" memory free:" + str(mem_free/1024) + " kB") # Create an image from the png file try: - with open('../../assets/img_star.png','rb') as f: + with open('../../assets/star.png','rb') as f: png_data = f.read() except: - print("Could not find img_star.png") + print("Could not find star.png") sys.exit() img_star = lv.img_dsc_t({ diff --git a/examples/widgets/btnmatrix/lv_example_btnmatrix_2.py b/examples/widgets/btnmatrix/lv_example_btnmatrix_2.py index 8adb570b0..feff95dc7 100644 --- a/examples/widgets/btnmatrix/lv_example_btnmatrix_2.py +++ b/examples/widgets/btnmatrix/lv_example_btnmatrix_2.py @@ -7,10 +7,10 @@ decoder.open_cb = open_png # Create an image from the png file try: - with open('../../assets/img_star.png','rb') as f: + with open('../../assets/star.png','rb') as f: png_data = f.read() except: - print("Could not find img_star.png") + print("Could not find star.png") sys.exit() img_star_argb = lv.img_dsc_t({