MCPcopy Create free account
hub / github.com/dothinking/PyAddin / set_caller

Function set_caller

pyaddin/resources/scripts/utils/context.py:32–35  ·  view source on GitHub ↗

set workbook instance calling this script.

(caller_name:str)

Source from the content-addressed store, hash-verified

30
31
32def set_caller(caller_name:str):
33 '''set workbook instance calling this script.'''
34 wb = __get_caller_workbook(caller_name)
35 set(KEY_CALLER, wb)
36
37
38def get_caller() -> 'win32com.WorkBook':

Callers

nothing calls this directly

Calls 2

__get_caller_workbookFunction · 0.85
setFunction · 0.85

Tested by

no test coverage detected