diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-14 16:30:02 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-14 16:30:02 +0300 |
commit | 7b1bf0c3087aa87cde7417b95b4dd3f8e4ca3781 (patch) | |
tree | 947406e07a6e335064e50101de56e89a1ed7405a | |
parent | 719f8c044a9d30a8d9f4356af1310f18e82e5b67 (diff) | |
download | micropython-7b1bf0c3087aa87cde7417b95b4dd3f8e4ca3781.tar.gz micropython-7b1bf0c3087aa87cde7417b95b4dd3f8e4ca3781.zip |
tools/make-frozen.py: Quick fix to support package-modules.
It allows to "import foo.bar", but not "from foo import bar".
-rwxr-xr-x | tools/make-frozen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make-frozen.py b/tools/make-frozen.py index 28829ec74d..aaa688598e 100755 --- a/tools/make-frozen.py +++ b/tools/make-frozen.py @@ -40,7 +40,7 @@ print("#include <stdint.h>") print("const char mp_frozen_str_names[] = {") for f, st in modules: m = module_name(f) - print('"%s\\0"' % m) + print('"%s\\0"' % m.replace("/", ".")) print('"\\0"};') print("const uint32_t mp_frozen_str_sizes[] = {") |