Commit 0c59db19 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Use qstr id to create sys module.

parent 7cd54d79
......@@ -81,6 +81,7 @@ Q(set)
Q(sorted)
Q(sum)
Q(str)
Q(sys)
Q(tuple)
Q(type)
Q(zip)
......
......@@ -168,7 +168,7 @@ void rt_init(void) {
#if MICROPY_CPYTHON_COMPAT
// Precreate sys module, so "import sys" didn't throw exceptions.
mp_obj_new_module(QSTR_FROM_STR_STATIC("sys"));
mp_obj_new_module(MP_QSTR_sys);
#endif
mp_module_micropython_init();
......
// qstrs specific to this port
Q(sys)
Q(argv)
Q(open)
Q(stdin)
......
// qstrs specific to this port
Q(sys)
Q(argv)
Q(open)
Q(stdin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment