Browse Source

Enforce use of python3 when doing computations

Alois Mahdal 1 year ago
parent
commit
3565ee60f7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bin/czkrates

+ 2
- 2
bin/czkrates View File

@@ -62,7 +62,7 @@ parse_rate1() {
62 62
         test "$wntcur" = "$Code" || continue
63 63
         case $Amount in
64 64
             1) echo "${!wntfld}" ;;
65
-            *) python -c "print(float($Rate)/$Amount)" ;;
65
+            *) python3 -c "print(float($Rate)/$Amount)" ;;
66 66
         esac
67 67
     done
68 68
 }
@@ -89,7 +89,7 @@ maybe_multiply() {
89 89
         echo "$price"
90 90
     else
91 91
         think "multiplying by: $Mult"
92
-        python -c "print(float($price) * $Mult)"
92
+        python3 -c "print(float($price) * $Mult)"
93 93
     fi
94 94
 }
95 95