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 all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
input.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
input.h
main.c ports: Move '.frozen' to second entry in sys.path. 2021-12-29 23:55:36 +11:00
modffi.c unix/modffi: Add option to lock GC in callback, and cfun access. 2021-06-24 23:12:26 +10:00
modjni.c py: Introduce and use mp_raise_type_arg helper. 2021-07-15 00:12:41 +10:00
modmachine.c extmod/machine_mem: Only allow integers in machine.memX subscript. 2020-11-13 11:13:37 +11:00
modos.c unix/modos: Add support for uos.urandom(n). 2021-11-17 12:59:38 +11:00
modtermios.c
modtime.c unix/modtime: Fix time() precision on unix ports with non-double floats. 2021-01-23 16:55:24 +11:00
moduos_vfs.c
moduselect.c unix/moduselect: Don't allow both posix and non-posix configurations. 2021-02-16 14:59:52 +11:00
modusocket.c unix/modusocket: Support MP_STREAM_POLL in unix socket_ioctl. 2021-10-19 22:48:10 +11:00
mpbthciport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpbtstackport.h
mpbtstackport_common.c unix/mpbtstackport_common: Implement mp_bluetooth_hci_active. 2021-02-12 12:07:05 +11:00
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 all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
mpnimbleport.c extmod/nimble: Make stm32 and unix NimBLE ports use synchronous events. 2020-11-13 17:19:05 +11:00
mpnimbleport.h
mpthreadport.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
mpthreadport.h
qstrdefsport.h
unix_mphal.c py/mpstate: Schedule KeyboardInterrupt on main thread. 2021-06-19 09:49:00 +10:00