modsys: Add optional support for sys.platform.

Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a
string value they need.
This commit is contained in:
Paul Sokolovsky
2014-06-07 23:40:04 +03:00
parent 7e4a2b0edc
commit b9b9354e6c
3 changed files with 10 additions and 0 deletions

View File

@@ -343,6 +343,9 @@ Q(byteorder)
Q(big)
Q(exit)
Q(little)
#ifdef MICROPY_PY_SYS_PLATFORM
Q(platform)
#endif
Q(stdin)
Q(stdout)
Q(stderr)