diff options
| author | Mark Rowe <mark@vector35.com> | 2025-08-11 15:45:38 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-08-20 13:06:33 -0400 |
| commit | ff72f3be107e94a0be41a1e7ba113000a4e95089 (patch) | |
| tree | 1dec15cea9d5b8e5609b1006638fc5cea2eda974 /python/workflow.py | |
| parent | e15b6e8789bd791a201bdac031561dddb59a99e4 (diff) | |
Deprecate Workflow::Instance in favor of Workflow::Get and Workflow::GetOrCreate
Calls to `Workflow::Instance` that were looking up a built-in workflow
name are updated to use `Workflow::Get`. Others use `Workflow::GetOrCreate`.
Diffstat (limited to 'python/workflow.py')
| -rw-r--r-- | python/workflow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/workflow.py b/python/workflow.py index 4db530f8..901a7cf9 100644 --- a/python/workflow.py +++ b/python/workflow.py @@ -288,7 +288,7 @@ class _WorkflowMetaclass(type): def __getitem__(self, value): binaryninja._init_plugins() - workflow = core.BNWorkflowInstance(str(value)) + workflow = core.BNWorkflowGetOrCreate(str(value)) return Workflow(handle=workflow) @@ -344,7 +344,7 @@ class Workflow(metaclass=_WorkflowMetaclass): def __init__(self, name: str = "", handle: core.BNWorkflowHandle = None, query_registry: bool = True, object_handle: Union[core.BNFunctionHandle, core.BNBinaryViewHandle] = None): if handle is None: if query_registry: - _handle = core.BNWorkflowInstance(str(name)) + _handle = core.BNWorkflowGetOrCreate(str(name)) else: _handle = core.BNCreateWorkflow(name) else: |
