0709cc0625f12119b9b596838f5ce14317d61cfe
3 LIBRARY_VERSION
=`cat library/setup.py | grep version | awk -F"'" '{print $2}'`
4 LIBRARY_NAME
=`cat library/setup.py | grep name | awk -F"'" '{print $2}'`
6 printf "$LIBRARY_NAME $LIBRARY_VERSION Python Library: Uninstaller\n\n"
8 if [ $
(id
-u) -ne 0 ]; then
9 printf "Script must be run as root. Try 'sudo ./uninstall.sh'\n"
15 printf "Unnstalling for Python 2..\n"
16 pip uninstall
$LIBRARY_NAME
18 if [ -f "/usr/bin/pip3" ]; then
19 printf "Uninstalling for Python 3..\n"
20 pip3 uninstall
$LIBRARY_NAME