From 1fba4ad870f4420334eb190e1b4c5d21e2ff82b1 Mon Sep 17 00:00:00 2001 From: littlemine Date: Thu, 10 Oct 2024 16:54:48 +0800 Subject: [PATCH] fix zeno literal output from pyzpc --- projects/PyZpc/Lib/zpy/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/PyZpc/Lib/zpy/types.py b/projects/PyZpc/Lib/zpy/types.py index 039ee13f4b..b8a796fdb9 100644 --- a/projects/PyZpc/Lib/zpy/types.py +++ b/projects/PyZpc/Lib/zpy/types.py @@ -52,7 +52,8 @@ def from_literal(value): if hasattr(value, 'to_handle'): return value else: - return ZenoObject.make_literal(value) + handle = ZenoObject.make_literal(value) + return ZenoObject(handle) def fetch_literal(self): litType_ = ctypes.c_int(0)