module
This commit is contained in:
parent
4974430c36
commit
1b71ed0c13
1 changed files with 8 additions and 7 deletions
|
@ -1365,20 +1365,21 @@ spcd_step__install_packages() {
|
||||||
|
|
||||||
spcd_step__python_write_module() {
|
spcd_step__python_write_module() {
|
||||||
spcd_step "Write module"
|
spcd_step "Write module"
|
||||||
for spcd_wpm__variable in \
|
local variable value text index root
|
||||||
|
for variable in \
|
||||||
OS_ID OS_VERSION \
|
OS_ID OS_VERSION \
|
||||||
PROJECT_ROOT PROJECT_PATH PROJECT_NAME \
|
PROJECT_ROOT PROJECT_PATH PROJECT_NAME \
|
||||||
PYTHON_VENV_BINARIES PYTHON_VENV_PACKAGES \
|
PYTHON_VENV_BINARIES PYTHON_VENV_PACKAGES \
|
||||||
OPEN DOWN VERT SPLT __UP SHUT; do
|
OPEN DOWN VERT SPLT __UP SHUT; do
|
||||||
spcd_wpm__value="$(spcd_os_printenv "SPCD_${spcd_wpm__variable}")"
|
value="$(spcd_os_printenv "SPCD_${variable}")"
|
||||||
spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value}
|
text="${text}${value}
|
||||||
"
|
"
|
||||||
done
|
done
|
||||||
spcd_wpm__index=$((__SPCD_STEP_1_INDEX + 1))
|
index=$((__SPCD_STEP_1_INDEX + 1))
|
||||||
for spcd_wpm__root in \
|
for root in \
|
||||||
"${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do
|
"${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do
|
||||||
spcd_os_write "${spcd_wpm__root}/env.py" "${spcd_wpm__text}
|
spcd_os_write "${root}/env.py" "${text}
|
||||||
SPCD_STEP = ${spcd_wpm__index}
|
SPCD_STEP = ${index}
|
||||||
"
|
"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue