[mpy] Added sys module

Removed useless "path" and "argv"
This commit is contained in:
ArtichOwO
2021-07-07 01:12:52 +02:00
committed by Laury
parent 0906dc919b
commit 2837b240e9
3 changed files with 12 additions and 3 deletions

View File

@@ -723,3 +723,12 @@ Q(from_uint16_buffer)
Q(from_int32_buffer)
Q(from_uint32_buffer)
#endif
// sys QSTRs
Q(sys)
Q(info)
Q(implementation)
Q(byteorder)
Q(exit)
Q(modules)
Q(print_exception)
Q(version_info)

View File

@@ -97,7 +97,7 @@
#define MICROPY_PY_STRUCT (0)
// Whether to provide "sys" module
#define MICROPY_PY_SYS (0)
#define MICROPY_PY_SYS (1)
// Whether to provide the "urandom" module
#define MICROPY_PY_URANDOM (1)