diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-07-10 13:48:52 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-07-10 13:48:52 +0200 |
commit | 0eabe4de4a8399a181bb70f6663cfb3fb27ea139 (patch) | |
tree | 0d0c13692f4c8a83951b90b3c4f59600919a89e7 | |
parent | a059e16f31f1053ff05de579e3220bab65d17860 (diff) |
Python packages dont appear in PATH it looks like
-rw-r--r-- | .config/shell/sources | 7 |
1 files changed, 7 insertions, 0 deletions
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 |