from pathlib import Path
import inspect


def _get_default_state_path(gui):
    """Return the path to the default state.json for a given GUI."""
    gui_path = Path(inspect.getfile(gui.__class__))
    path = gui_path.parent / 'static' / 'state.json'
    return path