diff --git a/cd.sh b/cd.sh index f6fd24b..64e8088 100644 --- a/cd.sh +++ b/cd.sh @@ -565,12 +565,12 @@ cd_execute_python_module () { local path cd_step "Execute Python module" # - path="${CD_PYTHON_PACKAGES}/env.py" - cd_echo \ - "CD_OS_ID" "CD_OS_VERSION" \ - "CD_SPLIT" \ - > "${path}" || exit - cd_cat "${path}" + cd_write "${CD_PYTHON_PACKAGES}/env.py" "$(cd_echo \ + CD_OS_ID CD_OS_VERSION \ + CD_SPLIT \ + )" + # + cd_split # path="$(realpath "${0}")" echo -n "\ diff --git a/cd/__init__.py b/cd/__init__.py index 676f867..279a18f 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -3,9 +3,6 @@ import os from cd.project import Project from cd.projects import Projects import env -print(env.CD_OS_ID) -print(env.CD_SPLIT) -print(env.CD_OS_VERSION) from rwx import fs from rwx import ps