Browse Source

Enforce use of python3 when doing computations

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