diff --git a/spcd.sh b/spcd.sh index cd851be..e448c33 100644 --- a/spcd.sh +++ b/spcd.sh @@ -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="────╌╌╌╌┄┄┄┄┈┈┈┈" diff --git a/spcd/__main__.py b/spcd/__main__.py index 1c82dba..c904941 100755 --- a/spcd/__main__.py +++ b/spcd/__main__.py @@ -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__)