parent
4e9afd7e5d
commit
7e7fc52d54
2 changed files with 11 additions and 1 deletions
8
cd.sh
8
cd.sh
|
@ -564,6 +564,12 @@ ${CD_PYTHON_PACKAGES}
|
||||||
cd_execute_python_module () {
|
cd_execute_python_module () {
|
||||||
local self
|
local self
|
||||||
cd_step "Execute Python module"
|
cd_step "Execute Python module"
|
||||||
|
#
|
||||||
|
cd_echo \
|
||||||
|
"CD_OS_ID" "CD_OS_VERSION" \
|
||||||
|
"CD_SPLIT" \
|
||||||
|
> "${CD_PYTHON_PACKAGES}/env.py"
|
||||||
|
#
|
||||||
self="$(realpath "${0}")"
|
self="$(realpath "${0}")"
|
||||||
echo -n "\
|
echo -n "\
|
||||||
${self}
|
${self}
|
||||||
|
@ -586,7 +592,7 @@ cd_echo () {
|
||||||
local name
|
local name
|
||||||
if [ "${1}" ] ; then
|
if [ "${1}" ] ; then
|
||||||
for name in "${@}" ; do
|
for name in "${@}" ; do
|
||||||
eval "echo ${name}=\${${name}}"
|
eval "echo ${name} = '\${${name}}'"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,10 @@ import os
|
||||||
|
|
||||||
from cd.project import Project
|
from cd.project import Project
|
||||||
from cd.projects import Projects
|
from cd.projects import Projects
|
||||||
|
import env
|
||||||
|
print(CD_OS_ID)
|
||||||
|
print(CD_SPLIT)
|
||||||
|
print(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