From 29b06d5b40ececf9332cda61faf859944a460c72 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 11 Jul 2025 11:24:24 -0400 Subject: [PATCH] Fix CLI launcher and module entry --- scripts/install.sh | 4 ++-- src/seedpass/cli.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4eee90b..412974f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -125,10 +125,10 @@ main() { # 7. Create launcher script print_info "Creating launcher script at '$LAUNCHER_PATH'..." mkdir -p "$LAUNCHER_DIR" - cat > "$LAUNCHER_PATH" << EOF2 +cat > "$LAUNCHER_PATH" << EOF2 #!/bin/bash source "$VENV_DIR/bin/activate" -exec "$VENV_DIR/bin/python" -m seedpass.cli "\$@" +exec "$VENV_DIR/bin/seedpass" "\$@" EOF2 chmod +x "$LAUNCHER_PATH" diff --git a/src/seedpass/cli.py b/src/seedpass/cli.py index e04f6bd..e2639f1 100644 --- a/src/seedpass/cli.py +++ b/src/seedpass/cli.py @@ -573,3 +573,7 @@ def api_stop(ctx: typer.Context, host: str = "127.0.0.1", port: int = 8000) -> N ) except Exception as exc: # pragma: no cover - best effort typer.echo(f"Failed to stop server: {exc}") + + +if __name__ == "__main__": + app()