From 69359ed5c069c58bce62921bb0cd64cbf5cb2742 Mon Sep 17 00:00:00 2001 From: Bossiara13 <236771060+DmitryBykov-ISPO@users.noreply.github.com> Date: Fri, 15 May 2026 12:12:21 +0300 Subject: [PATCH] feat: "Python edition" startup banner + one-click run.bat launcher main.py: prints a 3-line banner at startup with name, version, edition label ("Python edition") and the command count from the loaded YAML. Makes the console window self-identifying when both python and rust forks run simultaneously. run.bat at repo root: cd /d into repo, sets the cmd title to "J.A.R.V.I.S. (Python edition)", picks the venv interpreter at .venv\Scripts\python.exe if present (falls back to system python), runs main.py, then pauses at exit so the user can read any traceback instead of the console window vanishing on crash. Desktop shortcut "Jarvis (Python).lnk" points at this batch file with the project icon (the rust fork's icon.ico, since python has no .ico of its own). --- main.py | 5 +++++ run.bat | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 run.bat diff --git a/main.py b/main.py index 53839b9..8cf43ff 100644 --- a/main.py +++ b/main.py @@ -859,6 +859,11 @@ def execute_cmd(cmd: str, voice: str): play(confirm) +print("=" * 60) +print(f" J.A.R.V.I.S. v{config.VA_VER} [Python edition]") +print(f" Total commands: {len(VA_CMD_LIST)}") +print("=" * 60) + recorder = PvRecorder(device_index=config.MICROPHONE_INDEX, frame_length=512) recorder.start() print('Using device: %s' % recorder.selected_device) diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..ebe45fb --- /dev/null +++ b/run.bat @@ -0,0 +1,13 @@ +@echo off +cd /d "%~dp0" +title J.A.R.V.I.S. (Python edition) + +if exist ".venv\Scripts\python.exe" ( + ".venv\Scripts\python.exe" main.py +) else ( + python main.py +) + +echo. +echo --- jarvis exited, press a key to close --- +pause >nul