From 87b9f0b87b748fb8db87e2ff81d74bb76ec4769b Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Fri, 10 Feb 2017 10:00:18 -0500 Subject: misc: Update #!env calls for python to explicit version In some newer Linux distributions, env python default to Python 3.0. This patch explicitly uses "python2" instead of just "python" for all scripts that use #! Reported-by: Sanchayan Maity Signed-off-by: Jason Lowe-Power --- ext/mcpat/regression/regression.py | 2 +- ext/mcpat/regression/verify_output.py | 2 +- ext/ply/example/classcalc/calc.py | 2 +- ext/ply/example/newclasscalc/calc.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext') diff --git a/ext/mcpat/regression/regression.py b/ext/mcpat/regression/regression.py index aabfec75d..0115a5625 100755 --- a/ext/mcpat/regression/regression.py +++ b/ext/mcpat/regression/regression.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc. # All rights reserved. diff --git a/ext/mcpat/regression/verify_output.py b/ext/mcpat/regression/verify_output.py index c37663c8f..aaa75929f 100644 --- a/ext/mcpat/regression/verify_output.py +++ b/ext/mcpat/regression/verify_output.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (c) 2010-2013 Advanced Micro Devices, Inc. # All rights reserved. diff --git a/ext/ply/example/classcalc/calc.py b/ext/ply/example/classcalc/calc.py index bf0d065e4..f3591977b 100755 --- a/ext/ply/example/classcalc/calc.py +++ b/ext/ply/example/classcalc/calc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # ----------------------------------------------------------------------------- # calc.py diff --git a/ext/ply/example/newclasscalc/calc.py b/ext/ply/example/newclasscalc/calc.py index a12e498b2..3461f243e 100755 --- a/ext/ply/example/newclasscalc/calc.py +++ b/ext/ply/example/newclasscalc/calc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # ----------------------------------------------------------------------------- # calc.py -- cgit v1.2.3