diff --git a/cd.sh b/cd.sh index 659109d..0d5912a 100644 --- a/cd.sh +++ b/cd.sh @@ -564,6 +564,12 @@ ${CD_PYTHON_PACKAGES} cd_execute_python_module () { local self cd_step "Execute Python module" + # + cd_echo \ + "CD_OS_ID" "CD_OS_VERSION" \ + "CD_SPLIT" \ + > "${CD_PYTHON_PACKAGES}/env.py" + # self="$(realpath "${0}")" echo -n "\ ${self} @@ -586,7 +592,7 @@ cd_echo () { local name if [ "${1}" ] ; then for name in "${@}" ; do - eval "echo ${name}=\${${name}}" + eval "echo ${name} = '\${${name}}'" done fi } diff --git a/cd/__init__.py b/cd/__init__.py index da21c09..7c1660a 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -2,6 +2,10 @@ import os from cd.project import Project 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 ps