wip: co_code

This commit is contained in:
2025-03-01 15:25:03 +08:00
parent dacfd29c02
commit 93ad403e99
7 changed files with 1477 additions and 8 deletions

View File

@@ -62,6 +62,9 @@ class RuntimeInfo:
data = f.read(16 * 1024 * 1024)
cur = data.index(b'pyarmor-vax')
if data[cur+11:cur+18] == b'\x00' * 7:
raise ValueError(f'{self.file_path} is a runtime template')
self.part_1 = data[cur:cur+20]
cur += 36