diff --git a/agent_pulse.py b/agent_pulse.py index 473f27a..495f271 100755 --- a/agent_pulse.py +++ b/agent_pulse.py @@ -1666,7 +1666,8 @@ def render(self) -> Text: # ---------------------------- class AgentPulseApp(App): - CSS_PATH = "agent_pulse.tcss" + _css_file = Path(__file__).parent / "agent_pulse.tcss" + CSS = _css_file.read_text() if _css_file.exists() else "" ENABLE_COMMAND_PALETTE = False BINDINGS = [ ("q", "quit", "Quit"), diff --git a/pyproject.toml b/pyproject.toml index 4141287..8e0de37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,10 @@ dependencies = [ "textual>=0.50.0", ] +[tool.setuptools] +py-modules = ["agent_pulse"] +packages = [] + [project.scripts] agent-pulse = "agent_pulse:main"