Commit 25a42fb6 authored by Damien George's avatar Damien George
Browse files

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.
parent 74fb4e79
......@@ -503,9 +503,6 @@ def freeze_mpy(qcfgs, base_qstrs, raw_codes):
print('const char mp_frozen_mpy_names[] = {')
for rc in raw_codes:
module_name = rc.source_file.str
slash = module_name.rfind('/')
if slash != -1:
module_name = module_name[slash + 1:]
print('"%s\\0"' % module_name)
print('"\\0"};')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment