fix: Python package location on macOS

Legit I have no idea why it's unset by default
This commit is contained in:
Ahmad Ansori Palembani 2023-07-27 11:18:10 +07:00
parent 2714811cc3
commit 9fc857fe69
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -24,6 +24,7 @@ fi
# -- Path # -- Path
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
export PYTHONPATH="$HOME/Library/Python/3.10/lib:$PYTHONPATH"
LOCAL_PATH=$(du "$HOME/.local/bin/" | cut -f2 > /tmp/path && paste -sd ':' /tmp/path) LOCAL_PATH=$(du "$HOME/.local/bin/" | cut -f2 > /tmp/path && paste -sd ':' /tmp/path)
LOCAL_PATH="$HOME/Library/Python/3.10/bin:$LOCAL_PATH" LOCAL_PATH="$HOME/Library/Python/3.10/bin:$LOCAL_PATH"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then elif [[ "$OSTYPE" == "linux-gnu" ]]; then