py/switch
This commit is contained in:
parent
a9e31fd740
commit
acec3522fa
1 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue