summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-14 16:30:02 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-14 16:30:02 +0300
commit7b1bf0c3087aa87cde7417b95b4dd3f8e4ca3781 (patch)
tree947406e07a6e335064e50101de56e89a1ed7405a
parent719f8c044a9d30a8d9f4356af1310f18e82e5b67 (diff)
downloadmicropython-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-xtools/make-frozen.py2
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[] = {")