Improve dropdowncalc - use python with preloaded math lib

before: https://i.imgur.com/w1EcgeS.png

after: https://i.imgur.com/wPEQZC9.png
This commit is contained in:
Kipras Melnikovas 2020-11-17 23:16:01 +02:00 committed by GitHub
parent 9df28899de
commit cb8d6b80e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,9 @@
#!/bin/sh
ifinstalled bc && echo "Welcome to the Calculator." && bc -lq
NOT_BLOAT="/tmp/pystartuplmao"
cat > "$NOT_BLOAT" <<EOF
from math import *
EOF
python -i "$NOT_BLOAT"