parent
619f2eea86
commit
74bfd6ba1c
2 changed files with 9 additions and 7 deletions
10
cd.sh
10
cd.sh
|
@ -562,17 +562,19 @@ ${CD_PYTHON_PACKAGES}
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_execute_python_module () {
|
cd_execute_python_module () {
|
||||||
local self
|
local path
|
||||||
cd_step "Execute Python module"
|
cd_step "Execute Python module"
|
||||||
#
|
#
|
||||||
|
path="${CD_PYTHON_PACKAGES}/env.py"
|
||||||
cd_echo \
|
cd_echo \
|
||||||
"CD_OS_ID" "CD_OS_VERSION" \
|
"CD_OS_ID" "CD_OS_VERSION" \
|
||||||
"CD_SPLIT" \
|
"CD_SPLIT" \
|
||||||
> "${CD_PYTHON_PACKAGES}/env.py"
|
> "${path}" || exit
|
||||||
|
cd_cat "${path}"
|
||||||
#
|
#
|
||||||
self="$(realpath "${0}")"
|
path="$(realpath "${0}")"
|
||||||
echo -n "\
|
echo -n "\
|
||||||
${self}
|
${path}
|
||||||
↓
|
↓
|
||||||
${CD_GIT_CHILD}
|
${CD_GIT_CHILD}
|
||||||
"
|
"
|
||||||
|
|
|
@ -3,9 +3,9 @@ import os
|
||||||
from cd.project import Project
|
from cd.project import Project
|
||||||
from cd.projects import Projects
|
from cd.projects import Projects
|
||||||
import env
|
import env
|
||||||
print(CD_OS_ID)
|
print(env.CD_OS_ID)
|
||||||
print(CD_SPLIT)
|
print(env.CD_SPLIT)
|
||||||
print(CD_OS_VERSION)
|
print(env.CD_OS_VERSION)
|
||||||
from rwx import fs
|
from rwx import fs
|
||||||
from rwx import ps
|
from rwx import ps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue