From 98923934b323cdd88fdefe9bbb808a3445eaeb86 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 7 Aug 2024 15:18:54 +0200 Subject: [PATCH 1/2] relay python venv packages --- spcd.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/spcd.sh b/spcd.sh index e0b96bc..578a38a 100644 --- a/spcd.sh +++ b/spcd.sh @@ -772,6 +772,7 @@ spcd_write_python_module() { for spcd_wpm__variable in \ OS_ID OS_VERSION \ PROJECT_ROOT PROJECT_PATH PROJECT_NAME \ + PYTHON_VENV_PACKAGES \ OPEN DOWN VERT SPLT __UP SHUT; do spcd_wpm__value="$(spcd_echo "SPCD_${spcd_wpm__variable}")" spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value} From f659487b86996c931d864e4b64891d99eb93235f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 7 Aug 2024 15:38:05 +0200 Subject: [PATCH 2/2] insert python venv packages into sys.path --- spcd/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spcd/__init__.py b/spcd/__init__.py index 48492b1..302ee52 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -3,6 +3,11 @@ __version__ = "0.0.1" import sys + +import env + +sys.path.insert(0, env.SPCD_PYTHON_VENV_PACKAGES) + from pathlib import Path from rwx import fs