@@ -25,6 +25,17 @@ def onCreate(self):
2525 label3 .set_text (f"sys.implementation: { sys .implementation } " )
2626 label4 = lv .label (screen )
2727 label4 .set_text (f"sys.platform: { sys .platform } " )
28+ label15 = lv .label (screen )
29+ label15 .set_text (f"sys.path: { sys .path } " )
30+ import micropython
31+ label16 = lv .label (screen )
32+ label16 .set_text (f"micropython.mem_info(): { micropython .mem_info ()} " )
33+ label17 = lv .label (screen )
34+ label17 .set_text (f"micropython.opt_level(): { micropython .opt_level ()} " )
35+ label18 = lv .label (screen )
36+ label18 .set_text (f"micropython.qstr_info(): { micropython .qstr_info ()} " )
37+ label19 = lv .label (screen )
38+ label19 .set_text (f"mpos.__path__: { mpos .__path__ } " ) # this will show .frozen if the /lib folder is frozen (prod build)
2839 try :
2940 label5 = lv .label (screen )
3041 label5 .set_text ("" ) # otherwise it will show the default "Text" if there's an exception below
@@ -62,7 +73,12 @@ def onCreate(self):
6273 label14 = lv .label (screen )
6374 label14 .set_text (f"freezefs_mount_builtin.version: { freezefs_mount_builtin .version } " )
6475 except Exception as e :
65- # This will throw an exception if there is already a "/builtin" folder present
76+ # This will throw an EEXIST exception if there is already a "/builtin" folder present
77+ # It will throw "no module named 'freezefs_mount_builtin'" if there is no frozen filesystem
78+ # It's possible that the user had a dev build with a non-frozen /buitin folder in the vfat storage partition,
79+ # and then they install a prod build (with OSUpdate) that then is unable to mount the freezefs into /builtin
80+ # BUT which will still have the frozen-inside /lib folder. So the user will be able to install apps into /builtin
81+ # but they will not be able to install libraries into /lib.
6682 print ("main.py: WARNING: could not import/run freezefs_mount_builtin: " , e )
6783 label11 = lv .label (screen )
6884 label11 .set_text (f"freezefs_mount_builtin exception (normal on dev builds): { e } " )
0 commit comments