From fd7230ebe3801b02ec813f1a72ca28e96b5a86e1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 3 Jun 2024 04:33:10 +0200 Subject: [PATCH] cd_write --- cd.sh | 12 ++++++------ cd/__init__.py | 3 --- 2 files changed, 6 insertions(+), 9 deletions(-) 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