Browse Source

added script to set alternatives for python

master
Mario Alegre 5 years ago
parent
commit
2a59cb9466
  1. 9
      linux/system/python-alternatives.sh

9
linux/system/python-alternatives.sh

@ -0,0 +1,9 @@
#!/bin/bash
for python in /usr/bin/python*; do
if [[ $(basename $python) =~ ^python[0-9][.][0-9]$ ]]; then
sudo update-alternatives --install /usr/bin/python python $python 1
fi
done
sudo update-alternatives --config python
Loading…
Cancel
Save