This commit is contained in:
Marc Beninca 2024-09-17 12:28:44 +02:00
parent 1e14eaf12d
commit 6347c0c5c3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -44,7 +44,7 @@ def clone_project_branch() -> None:
)
def install_commands(path: str) -> None:
def install_commands(path: Path) -> None:
"""Make commands callable in the operating system."""
step("Install commands")
user = Path("/usr/local/bin")
@ -92,8 +92,12 @@ def list_environment_variables() -> None:
log.info("%s", variable)
def main(main_file: str) -> None:
"""Entry point to initialize environment or run a specific command."""
def main(main_file: Path) -> None:
"""Entry point to initialize environment or run a specific command.
:param main_file: entry point file calling this function
:type main_file: Path
"""
paths = environ["PATH"].split(pathsep)
if env.SPCD_PYTHON_VENV_BINARIES not in paths:
environ["PATH"] = pathsep.join([env.SPCD_PYTHON_VENV_BINARIES, *paths])