Skip to content

Commit 25a42fb

Browse files
committed
tools/mpy-tool.py: Don't strip directories from the frozen source name.
Directories are now supported by the frozen import system (to implement frozen packages) so we should keep them.
1 parent 74fb4e7 commit 25a42fb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tools/mpy-tool.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,6 @@ def freeze_mpy(qcfgs, base_qstrs, raw_codes):
503503
print('const char mp_frozen_mpy_names[] = {')
504504
for rc in raw_codes:
505505
module_name = rc.source_file.str
506-
slash = module_name.rfind('/')
507-
if slash != -1:
508-
module_name = module_name[slash + 1:]
509506
print('"%s\\0"' % module_name)
510507
print('"\\0"};')
511508

0 commit comments

Comments
 (0)