circuitpython/shared
Jim Mussared e0bf4611c3 py: Only search frozen modules when '.frozen' is found in sys.path.
This changes makemanifest.py & mpy-tool.py to merge string and mpy names
into the same list (now mp_frozen_names).

The various paths for loading a frozen module (mp_find_frozen_module) and
checking existence of a frozen module (mp_frozen_stat) use a common
function that searches this list.

In addition, the frozen lookup will now only take place if the path starts
with ".frozen", which needs to be added to sys.path.

This fixes issues #1804, #2322, #3509, #6419.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2021-12-18 00:01:59 +11:00
..
libc shared/libc/string0: Don't include string.h, and provide __memcpy_chk. 2021-11-17 13:58:07 +11:00
memzip all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
netutils all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
readline all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
runtime py: Only search frozen modules when '.frozen' is found in sys.path. 2021-12-18 00:01:59 +11:00
timeutils all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
upytesthelper shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
README.md lib,shared: Update README's based on contents of these dirs. 2021-07-13 00:17:02 +10:00

This directory contains libraries, utilities and helper code developed specifically for this project. The code is intended to be portable and usable by any port.