mirror of
https://github.com/rhasspy/piper-sample-generator.git
synced 2026-08-27 18:15:58 -04:00
12 lines
319 B
Python
Executable file
12 lines
319 B
Python
Executable file
#!/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, "generate_samples.py"] + sys.argv[1:])
|