(instance: PythonScriptingInstance)
| 1657 | |
| 1658 | |
| 1659 | def _get_current_segment(instance: PythonScriptingInstance): |
| 1660 | if instance.interpreter.active_view is None: |
| 1661 | return None |
| 1662 | return instance.interpreter.active_view.get_segment_at(instance.interpreter.active_addr) |
| 1663 | |
| 1664 | |
| 1665 | PythonScriptingProvider.register_magic_variable("current_segment", _get_current_segment) |
nothing calls this directly
no test coverage detected