diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-06-29 00:21:36 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-06-29 00:26:45 +0300 |
commit | 9780e552748842d6f76f7a1a7f390287552844f1 (patch) | |
tree | 92bfb7ab0d2e8cce9bb1c4878ed61b68fb96a70d /py/modstruct.c | |
parent | 4f5b896a0b605b10fd644f36b458e7b936876102 (diff) | |
download | micropython-9780e552748842d6f76f7a1a7f390287552844f1.tar.gz micropython-9780e552748842d6f76f7a1a7f390287552844f1.zip |
builtinimport: Fix running package submodule with -m.
When "micropython -m pkg.mod" command was used, relative imports in pkg.mod
didn't work, because pkg.mod.__name__ was set to __main__, and the fact that
it's a package submodule was missed. This is an original workaround to this
issue. TODO: investigate and compare how CPython deals with this issue.
Diffstat (limited to 'py/modstruct.c')
0 files changed, 0 insertions, 0 deletions