Skip to content

Commit

Permalink
[ranger] Explicitly use python3 in scopes.sh
Browse files Browse the repository at this point in the history
I hate Ubuntu. Python 3 should be default
  • Loading branch information
MarcelRobitaille committed Oct 10, 2022
1 parent 4cc9d6e commit 136f6a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ranger/scope.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ handle_extension() {
exit 1;;

feather)
/usr/bin/python -c "import pandas as pd; print(pd.read_feather('${FILE_PATH}'))" && exit 5
/usr/bin/python3 -c "import pandas as pd; print(pd.read_feather('${FILE_PATH}'))" && exit 5
exit 1;;

npy)
/usr/bin/python -c "import numpy as np; print(np.load('${FILE_PATH}'))" && exit 5
/usr/bin/python3 -c "import numpy as np; print(np.load('${FILE_PATH}'))" && exit 5
exit 1;;

csv)
/usr/bin/python -c "import pandas as pd; print(pd.read_csv('${FILE_PATH}'))" && exit 5
exit 1;;
/usr/bin/python3 -c "import pandas as pd; print(pd.read_csv('${FILE_PATH}'))" && exit 5
exit 1;;

# OpenDocument
# odt|ods|odp|sxw)
Expand Down

0 comments on commit 136f6a6

Please sign in to comment.