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).
This commit is contained in:
Bossiara13 2026-05-15 12:12:21 +03:00
parent 3795a0b4ec
commit 69359ed5c0
2 changed files with 18 additions and 0 deletions

View file

@ -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)