docstring/spcd/init/main

This commit is contained in:
Marc Beninca 2024-08-19 17:56:35 +02:00
parent ba59b1618f
commit dddad18357
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -87,6 +87,7 @@ def list_environment_variables() -> None:
def main(main: str) -> None:
"""Entry point to initialize environment or run a specific command."""
paths = environ["PATH"].split(pathsep)
if env.SPCD_PYTHON_VENV_BINARIES not in paths:
environ["PATH"] = pathsep.join([env.SPCD_PYTHON_VENV_BINARIES, *paths])