-
frame.f_code.co_filename is a qualified filename with no leading / for frozen modules.
-
attempring to access frame_f_locals in a frozen module causes a crash on ESP32, possibly caused by the fact that mpy files are not compiled with "debug symbols"/ access to local names.
import sys
from collections import OrderedDict as OD