Skip to content

Commit

Permalink
Add run_usbmic script
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jul 1, 2024
1 parent cc9b33e commit a2bb7c8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions script/run_usbmic
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python3
import sys
import subprocess
import venv
from pathlib import Path

_DIR = Path(__file__).parent
_PROGRAM_DIR = _DIR.parent
_VENV_DIR = _PROGRAM_DIR / ".venv"

context = venv.EnvBuilder().ensure_directories(_VENV_DIR)
subprocess.check_call(
[context.env_exe, str(_PROGRAM_DIR / "examples" / "usbmic_service.py")]
+ sys.argv[1:]
)

0 comments on commit a2bb7c8

Please sign in to comment.