circuitpython/ports
Damien George aac5a97d08 ports: Move '.frozen' to second entry in sys.path.
In commit 86ce442607 the '.frozen' entry was
added at the start of sys.path, to allow control over when frozen modules
are searched during import, and retain existing behaviour whereby frozen
was searched before the filesystem.

But Python semantics of sys.path require sys.path[0] to be the directory of
the currently executing script, or ''.

This commit moves the '.frozen' entry to second place in sys.path, so
sys.path[0] retains its correct value (described above).

Signed-off-by: Damien George <damien@micropython.org>
2021-12-29 23:55:36 +11:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
esp32 esp32/machine_bitstream: Replace bit-bang code with RMT-based driver. 2021-12-22 12:04:13 +11:00
esp8266 esp8266/etshal.h: Remove unneeded function declarations. 2021-12-21 14:37:16 +11:00
javascript py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
mimxrt py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
minimal minimal/mpconfigport.h: Disable features that are not needed. 2021-11-05 13:12:18 +11:00
nrf py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
pic16bit all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
powerpc all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
qemu-arm all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
rp2 py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
samd py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
stm32 stm32/boards/OLIMEX_H407: Fix typo in OLIMEX H407 board.json. 2021-12-20 12:32:46 +11:00
teensy py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00
unix ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
windows ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
zephyr py/runtime: Allow initialising sys.path/argv with defaults. 2021-12-18 00:08:07 +11:00