This commit is contained in:
Marc Beninca 2024-09-15 00:03:48 +02:00
parent c7cb8316e9
commit 201ba91e00
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -88,7 +88,7 @@ def list_environment_variables() -> None:
log.info(f"{variable}") log.info(f"{variable}")
def main(main: str) -> None: def main(main_file: str) -> None:
"""Entry point to initialize environment or run a specific command.""" """Entry point to initialize environment or run a specific command."""
paths = environ["PATH"].split(pathsep) paths = environ["PATH"].split(pathsep)
if env.SPCD_PYTHON_VENV_BINARIES not in paths: if env.SPCD_PYTHON_VENV_BINARIES not in paths:
@ -99,7 +99,7 @@ def main(main: str) -> None:
list_environment_variables() list_environment_variables()
clone_project_branch() clone_project_branch()
set_ssh() set_ssh()
install_commands(main) install_commands(main_file)
install_python_packages() install_python_packages()
else: else:
f = getattr(cmd, name.replace("-", "_")) f = getattr(cmd, name.replace("-", "_"))