Skip to content

Commit 7b1bf0c

Browse files
committed
tools/make-frozen.py: Quick fix to support package-modules.
It allows to "import foo.bar", but not "from foo import bar".
1 parent 719f8c0 commit 7b1bf0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/make-frozen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def module_name(f):
4040
print("const char mp_frozen_str_names[] = {")
4141
for f, st in modules:
4242
m = module_name(f)
43-
print('"%s\\0"' % m)
43+
print('"%s\\0"' % m.replace("/", "."))
4444
print('"\\0"};')
4545

4646
print("const uint32_t mp_frozen_str_sizes[] = {")

0 commit comments

Comments
 (0)