Use qstr id to create sys module.

This commit is contained in:
Paul Sokolovsky
2014-02-04 07:55:10 +02:00
parent 7cd54d79db
commit 0c59db1973
4 changed files with 2 additions and 3 deletions

View File

@@ -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();