We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6c89a commit f8a39e3Copy full SHA for f8a39e3
1 file changed
tools/make-frozen.py
@@ -26,16 +26,14 @@ def module_name(f):
26
27
modules = []
28
29
-root = sys.argv[1]
+root = sys.argv[1].rstrip("/")
30
root_len = len(root)
31
-if root[-1] != "/":
32
- root_len += 1
33
34
for dirpath, dirnames, filenames in os.walk(root):
35
for f in filenames:
36
fullpath = dirpath + "/" + f
37
st = os.stat(fullpath)
38
- modules.append((fullpath[root_len:], st))
+ modules.append((fullpath[root_len + 1:], st))
39
40
print("#include <stdint.h>")
41
print("const uint16_t mp_frozen_sizes[] = {")
0 commit comments