add venv binaries to path
Some checks failed
/ job (push) Failing after 4m41s

This commit is contained in:
Marc Beninca 2024-08-08 00:07:44 +02:00
parent 700654fadc
commit d14ae1725e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 6 additions and 1 deletions

View file

@ -734,7 +734,7 @@ spcd_write_python_module() {
for spcd_wpm__variable in \
OS_ID OS_VERSION \
PROJECT_ROOT PROJECT_PATH PROJECT_NAME \
PYTHON_VENV_PACKAGES \
PYTHON_VENV_BINARIES 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}
@ -919,6 +919,7 @@ SPCD_PM_DNF="dnf"
SPCD_PM_PACMAN="pacman"
SPCD_PYTHON_VENV="/opt/venv"
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"

View file

@ -2,6 +2,7 @@
"""Entry point."""
import os
import sys
import env
@ -11,4 +12,7 @@ if env.SPCD_PYTHON_VENV_PACKAGES not in sys.path:
import spcd
if __name__ == "__main__":
os.environ["PATH"] = os.pathsep.join(
[env.SPCD_PYTHON_VENV_BINARIES, os.environ["PATH"]]
)
spcd.main(__file__)