From acec3522fae09e3d2232529810f49e402ae9dc07 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 9 Sep 2024 00:19:43 +0200 Subject: [PATCH] py/switch --- spcd/bootstrap.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 40e4c18..4d61239 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1049,6 +1049,18 @@ SPCD_STEP = ${index} done } +spcd_f_py_switch() { + spcd_step "Switch" + local name path + name="$(basename "${SPCD_GIT_SPCD}")" + path="$(realpath "${0}")" + echo "\ +${path} +↓ +${SPCD_PYTHON_ALIAS} / ${name}" + "${SPCD_PYTHON_ALIAS}" -m "${name}" +} + # ╭───┬─────╮ # │ f │ txt │ # ╰───┴─────╯ @@ -1547,18 +1559,6 @@ spcd_step__install_packages() { spcd_step_out } -spcd_step__python_switch() { - spcd_step "Switch" - local name path - name="$(basename "${SPCD_GIT_SPCD}")" - path="$(realpath "${0}")" - echo "\ -${path} -↓ -${SPCD_PYTHON_ALIAS} / ${name}" - "${SPCD_PYTHON_ALIAS}" -m "${name}" -} - # ╭──────╮ # │ main │ # ╰──────╯ @@ -1617,7 +1617,7 @@ spcd_main() { spcd_step__python_modules spcd_step__install_packages spcd_f_py_save - spcd_step__python_switch + spcd_f_py_switch } spcd_main