diff --git a/scripts/pycalc3 b/scripts/pycalc3 new file mode 100755 index 0000000..e5154b7 --- /dev/null +++ b/scripts/pycalc3 @@ -0,0 +1,9 @@ +#!/bin/sh + +for python in bpython python3; do + if python="$(command -v "$python")"; then + break + fi +done +echo "using Python '$python'" +PYTHONSTARTUP="$(dirname "$0")/pycalc_startup.py" "$python" "$@" diff --git a/scripts/pycalc_startup.py b/scripts/pycalc_startup.py new file mode 100644 index 0000000..7cc169b --- /dev/null +++ b/scripts/pycalc_startup.py @@ -0,0 +1,3 @@ +from math import * + +print("loaded Python calculator")