Skip to content
Snippets Groups Projects
Commit 7b1bf0c3 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tools/make-frozen.py: Quick fix to support package-modules.

It allows to "import foo.bar", but not "from foo import bar".
parent 719f8c04
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ print("#include <stdint.h>") ...@@ -40,7 +40,7 @@ print("#include <stdint.h>")
print("const char mp_frozen_str_names[] = {") print("const char mp_frozen_str_names[] = {")
for f, st in modules: for f, st in modules:
m = module_name(f) m = module_name(f)
print('"%s\\0"' % m) print('"%s\\0"' % m.replace("/", "."))
print('"\\0"};') print('"\\0"};')
print("const uint32_t mp_frozen_str_sizes[] = {") print("const uint32_t mp_frozen_str_sizes[] = {")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment