refactor(klipper): recommend Python3 for Klipper installation (#246)

This commit is contained in:
CODeRUS
2022-12-07 20:42:51 +03:00
committed by GitHub
parent 2c9f5bed60
commit e796f74640

View File

@@ -57,13 +57,13 @@ function start_klipper_setup() {
read -p "${cyan}###### Select Python version:${white} " input read -p "${cyan}###### Select Python version:${white} " input
case "${input}" in case "${input}" in
1) 1)
select_msg "Python 2.7\n"
python_version=2
break;;
2)
select_msg "Python 3.x\n" select_msg "Python 3.x\n"
python_version=3 python_version=3
break;; break;;
2)
select_msg "Python 2.7\n"
python_version=2
break;;
B|b) B|b)
clear; install_menu; break;; clear; install_menu; break;;
*) *)
@@ -153,8 +153,8 @@ function print_dialog_user_select_python_version() {
echo -e "| Installing Klipper with Python 3 is officially not | " echo -e "| Installing Klipper with Python 3 is officially not | "
echo -e "| recommended and should be considered as experimental. | " echo -e "| recommended and should be considered as experimental. | "
hr hr
echo -e "| 1) [Python 2.7] (recommended) | " echo -e "| 1) [Python 3.x] (recommended) | "
echo -e "| 2) [Python 3.x] ${yellow}(experimental)${white} | " echo -e "| 2) [Python 2.7] ${yellow}(legacy)${white} | "
back_footer back_footer
} }