Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
0c59db19
Commit
0c59db19
authored
Feb 04, 2014
by
Paul Sokolovsky
Browse files
Use qstr id to create sys module.
parent
7cd54d79
Changes
4
Hide whitespace changes
Inline
Side-by-side
py/qstrdefs.h
View file @
0c59db19
...
...
@@ -81,6 +81,7 @@ Q(set)
Q
(
sorted
)
Q
(
sum
)
Q
(
str
)
Q
(
sys
)
Q
(
tuple
)
Q
(
type
)
Q
(
zip
)
...
...
py/runtime.c
View file @
0c59db19
...
...
@@ -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
();
...
...
unix/qstrdefsport.h
View file @
0c59db19
// qstrs specific to this port
Q
(
sys
)
Q
(
argv
)
Q
(
open
)
Q
(
stdin
)
...
...
windows/qstrdefsport.h
View file @
0c59db19
// qstrs specific to this port
Q
(
sys
)
Q
(
argv
)
Q
(
open
)
Q
(
stdin
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment