From b7196c51c346df38661062ba0638bb832bb264a0 Mon Sep 17 00:00:00 2001 From: Jondy Zhao Date: Fri, 20 Oct 2023 05:47:57 +0800 Subject: [PATCH] Fix issue #1542 --- src/cli/docker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/docker.py b/src/cli/docker.py index 3c3b990a..f1d22a42 100644 --- a/src/cli/docker.py +++ b/src/cli/docker.py @@ -6,7 +6,7 @@ import sys from .context import Context -from .generate import Builder, Pytransform3 +from .generate import Pytransform3 from .register import Register, MACHFLAGS @@ -53,7 +53,8 @@ def parse_packet(self, packet): def generate_runtime_key(self, userdata): ctx = CONFIG['ctx'] ctx.cmd_options['user_data'] = userdata - return Builder(ctx).generate_runtime_key() + Pytransform3._pytransform3.init_ctx(ctx) + return Pytransform3.generate_runtime_key(ctx) def register_pyarmor(ctx, regfile):