summaryrefslogtreecommitdiffstatshomepage
path: root/tools/make-frozen.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-21 21:39:27 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-21 21:39:27 +0300
commitdaa4793578cc218c6ed5c2527375214191613015 (patch)
treee0c4805562c8d85698d8bbc25331936fdef1efe6 /tools/make-frozen.py
parentfb742cdc1215c5444cbe9e10f37fecb4ffce0006 (diff)
downloadmicropython-daa4793578cc218c6ed5c2527375214191613015.tar.gz
micropython-daa4793578cc218c6ed5c2527375214191613015.zip
tools/make-frozen: Update for latest changes in frozen modules support.
Frozen modules are now stored with extensions and with '/' as path separator. In other words, frozen modules paths stored as they are in normal filesystem.
Diffstat (limited to 'tools/make-frozen.py')
-rwxr-xr-xtools/make-frozen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make-frozen.py b/tools/make-frozen.py
index aaa688598e..1051b520e4 100755
--- a/tools/make-frozen.py
+++ b/tools/make-frozen.py
@@ -23,7 +23,7 @@ import os
def module_name(f):
- return f[:-len(".py")]
+ return f
modules = []
@@ -40,7 +40,7 @@ print("#include <stdint.h>")
print("const char mp_frozen_str_names[] = {")
for f, st in modules:
m = module_name(f)
- print('"%s\\0"' % m.replace("/", "."))
+ print('"%s\\0"' % m)
print('"\\0"};')
print("const uint32_t mp_frozen_str_sizes[] = {")