Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

LibCEC: Always use newest installed Python version. #87

Merged
merged 2 commits into from
Jan 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions package/opt/hassbian/suites/install_libcec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ sudo make install
sudo ldconfig

echo "Linking libcec to venv site packages"
PYTHONVER=$(ls /usr/local/lib/ | grep python | tail -1)
sudo -u homeassistant -H /bin/bash <<EOF
if [ -d "/usr/lib/python3.5" ]; then
ln -s /usr/local/lib/python3.5/dist-packages/cec /srv/homeassistant/lib/python3.5/site-packages/
else
ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/homeassistant/lib/python3.4/site-packages/
fi
ln -s /usr/local/lib/$PYTHONVER/dist-packages/cec /srv/homeassistant/lib/$PYTHONVER/site-packages/
EOF

echo
Expand Down