fix: use python3 for all python invocations (#10832)

This commit is contained in:
Carlo Sala 2022-04-09 14:45:42 +02:00 committed by GitHub
commit 0818df057c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 17 additions and 17 deletions

View file

@ -3,9 +3,9 @@
# - acs: alias cheatsheet
# group alias by command, pass addition argv to grep.
function acs(){
(( $+commands[python] )) || {
(( $+commands[python3] )) || {
echo "[error] No python executable detected"
return
}
alias | python ${functions_source[$0]:h}/cheatsheet.py $@
alias | python3 ${functions_source[$0]:h}/cheatsheet.py $@
}

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import itertools
import termcolor