From e6b1356e5e88fe30dd89914cdd91a2ebac7b6614 Mon Sep 17 00:00:00 2001 From: JJTech0130 Date: Thu, 1 Jun 2023 17:46:02 -0400 Subject: add AnalysisContext around ac --- python/workflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/workflow.py') diff --git a/python/workflow.py b/python/workflow.py index 01da17a9..702a1b87 100644 --- a/python/workflow.py +++ b/python/workflow.py @@ -40,7 +40,7 @@ class AnalysisContext: The ``AnalysisContext`` object is used to represent the current state of analysis for a given function. It allows direct modification of IL and other analysis information. """ - + def __init__(self, handle: core.BNAnalysisContextHandle): assert handle is not None self.handle = handle @@ -145,7 +145,7 @@ class Activity(object): def _action(self, ac: Any): try: if self.action is not None: - self.action(ac) + self.action(AnalysisContext(ac)) except: log_error(traceback.format_exc()) -- cgit v1.3.1