From 0eabe4de4a8399a181bb70f6663cfb3fb27ea139 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 10 Jul 2023 13:48:52 +0200 Subject: Python packages dont appear in PATH it looks like --- .config/shell/sources | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/shell/sources b/.config/shell/sources index 0709911..62a7f7b 100644 --- a/.config/shell/sources +++ b/.config/shell/sources @@ -27,6 +27,13 @@ then PATH="$PATH:/usr/local/share/perl6/vendor/bin" fi +# Python packages +if command -v python >/dev/null 2>&1 +then + PATH="$PATH:$(python -c 'import site; print(":".join(map(lambda x: x + "/usr/bin", site.getsitepackages())))')" + PATH="$PATH:$(python -c 'import site; print(":".join(map(lambda x: x + "/usr/sbin", site.getsitepackages())))')" +fi + # Load color definitions if they exist if [ -f "$HOME/.config/shell/colors/$SHORTSHELL" ] then -- cgit v1.1