micropython/ports/unix
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
..
variants ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
.gitignore
Makefile all: Remove support for FROZEN_DIR and FROZEN_MPY_DIR. 2021-12-17 23:54:05 +11:00
alloc.c
coverage.c unix/coverage: Change remaining printf to mp_printf. 2021-12-09 12:38:50 +11:00
coveragecpp.cpp
fatfs_port.c
gccollect.c
input.c
input.h
main.c ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
modffi.c
modjni.c
modmachine.c
modos.c unix/modos: Add support for uos.urandom(n). 2021-11-17 12:59:38 +11:00
modtermios.c
modtime.c
moduos_vfs.c
moduselect.c
modusocket.c unix/modusocket: Support MP_STREAM_POLL in unix socket_ioctl. 2021-10-19 22:48:10 +11:00
mpbthciport.c
mpbtstackport.h
mpbtstackport_common.c
mpbtstackport_h4.c
mpbtstackport_usb.c
mpconfigport.h ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
mpconfigport.mk
mphalport.h
mpnimbleport.c
mpnimbleport.h
mpthreadport.c
mpthreadport.h
qstrdefsport.h
unix_mphal.c