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.
This commit is contained in:
Damien George 2016-05-23 13:29:03 +01:00
parent 74fb4e795b
commit 25a42fb6ef
1 changed files with 0 additions and 3 deletions

View File

@ -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"};')