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