diff --git a/cd.sh b/cd.sh index 607d7da..f6fd24b 100644 --- a/cd.sh +++ b/cd.sh @@ -562,17 +562,19 @@ ${CD_PYTHON_PACKAGES} } cd_execute_python_module () { -local self +local path cd_step "Execute Python module" # + path="${CD_PYTHON_PACKAGES}/env.py" cd_echo \ "CD_OS_ID" "CD_OS_VERSION" \ "CD_SPLIT" \ - > "${CD_PYTHON_PACKAGES}/env.py" + > "${path}" || exit + cd_cat "${path}" # - self="$(realpath "${0}")" + path="$(realpath "${0}")" echo -n "\ -${self} +${path} ↓ ${CD_GIT_CHILD} " diff --git a/cd/__init__.py b/cd/__init__.py index 7c1660a..676f867 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -3,9 +3,9 @@ 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) +print(env.CD_OS_ID) +print(env.CD_SPLIT) +print(env.CD_OS_VERSION) from rwx import fs from rwx import ps