plugin/python: Pyton 2 is dead; Long Live Python 3!
parent
29216c0fd4
commit
139baedf5d
|
|
@ -1,11 +1,12 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
about-plugin 'alias "shttp" to SimpleHTTPServer'
|
about-plugin 'alias "shttp" to SimpleHTTPServer'
|
||||||
|
|
||||||
if _command_exists python2; then
|
if _command_exists python3; then
|
||||||
alias shttp='python2 -m SimpleHTTPServer'
|
alias shttp='python3 -m http.server'
|
||||||
elif _command_exists python; then
|
elif _command_exists python; then
|
||||||
alias shttp='python -m SimpleHTTPServer'
|
alias shttp='python -m http.server'
|
||||||
else
|
else
|
||||||
|
_log_warning "Unable to load 'plugin/python' due to being unable to find a working 'python'"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue