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