from ._debugDraw import IDebugDraw
from ._debugDraw import acquire_debug_draw_interface, release_debug_draw_interface

def _get_interface(func, acq):
    if not hasattr(func, "iface"):
        func.iface = acq()
    return func.iface

def get_debug_draw_interface() -> IDebugDraw:
    return _get_interface(get_debug_draw_interface, acquire_debug_draw_interface)

from .scripts.extension import *
