22 lines
472 B
Python
22 lines
472 B
Python
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
import config
|
|
from voz import anuncio_en_teles
|
|
|
|
|
|
def main():
|
|
texto = " ".join(sys.argv[1:])
|
|
if not texto:
|
|
print("Uso: python tv_mensaje.py \"mensaje a la tele\"")
|
|
print("Ejemplo: python tv_mensaje.py \"A cenar, la comida está lista\"")
|
|
return
|
|
print(f"Enviando a la tele: {texto}")
|
|
anuncio_en_teles(texto)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|