From e7951541c34c5561187110ba0ec69b9c45022747 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 10 Jun 2016 11:01:10 +0100 Subject: toaster: bin Use python 3 for our django modules check Explicitly use python3 so that the modules for python3 are checked. Signed-off-by: Michael Wood --- bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/toaster') diff --git a/bin/toaster b/bin/toaster index be1bb9c4f..e3a0dae48 100755 --- a/bin/toaster +++ b/bin/toaster @@ -115,7 +115,7 @@ verify_prereq() { exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/' exp=$exp'import sys,django;version=django.get_version().split(".");' exp=$exp'sys.exit(not (version \1 "\2".split(".") and version \3 "\4".split(".")))/p' - if ! sed -n "$exp" $reqfile | python - ; then + if ! sed -n "$exp" $reqfile | python3 - ; then req=`grep ^Django $reqfile` echo "This program needs $req" echo "Please install with pip install -r $reqfile" -- cgit 1.2.3-korg