From 139baedf5d578719867a5cef252dd6e1edeffda7 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Mon, 3 Jan 2022 17:47:33 -0800 Subject: [PATCH] plugin/python: Pyton 2 is dead; Long Live Python 3! --- plugins/available/python.plugin.bash | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/available/python.plugin.bash b/plugins/available/python.plugin.bash index d9581e5c..bd644e8b 100644 --- a/plugins/available/python.plugin.bash +++ b/plugins/available/python.plugin.bash @@ -1,11 +1,12 @@ # shellcheck shell=bash about-plugin 'alias "shttp" to SimpleHTTPServer' -if _command_exists python2; then - alias shttp='python2 -m SimpleHTTPServer' +if _command_exists python3; then + alias shttp='python3 -m http.server' elif _command_exists python; then - alias shttp='python -m SimpleHTTPServer' + alias shttp='python -m http.server' else + _log_warning "Unable to load 'plugin/python' due to being unable to find a working 'python'" return 1 fi