Message when conda is not activated

This commit is contained in:
henryruhs 2024-03-28 23:52:54 +01:00
parent 6fd53b9229
commit cfb8a15064
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ def run(program : ArgumentParser) -> None:
python_id = 'cp' + str(sys.version_info.major) + str(sys.version_info.minor)
if not args.skip_conda and 'CONDA_PREFIX' not in os.environ:
sys.stdout.write(wording.get('conda_not_activated') + os.linesep)
sys.exit(1)
if args.onnxruntime:
answers =\

View File

@ -2,6 +2,7 @@ from typing import Any, Dict, Optional
WORDING : Dict[str, Any] =\
{
'conda_not_activated': 'Conda is not activated',
'python_not_supported': 'Python version is not supported, upgrade to {version} or higher',
'ffmpeg_not_installed': 'FFMpeg is not installed',
'creating_temp': 'Creating temporary resources',