Skip to content

Instantly share code, notes, and snippets.

@4DRIAN0RTIZ
Last active December 5, 2023 18:19
Show Gist options
  • Save 4DRIAN0RTIZ/859c8354e41d629d9bc1329ba5878363 to your computer and use it in GitHub Desktop.
Save 4DRIAN0RTIZ/859c8354e41d629d9bc1329ba5878363 to your computer and use it in GitHub Desktop.
agoracli.bat
@echo off
:: EL script de python espera "-m <matricula"
set arg1=%1
set arg2=%2
set arg3=%3
:: Define la ruta del script de AgoraCLI
set agoracli_path=%USERPROFILE%\.config\AgoraCLI\agoracli.py
:: Ruta al entorno virtual de AgoraCLI
set virtual_env_path=%USERPROFILE%\.config\AgoraCLI\AgoraCLI
:: Activa el entorno virtual
call "%virtual_env_path%\Scripts\Activate"
:: Ejecuta AgoraCLI con los argumentos
python "%agoracli_path%" %arg1% %arg2% %arg3%
:: Desactiva el entorno virtual
call "%virtual_env_path%\Scripts\Deactivate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment