From 92fbf93360dc44a13c48ad68be8333a461927f36 Mon Sep 17 00:00:00 2001 From: Sergiu Date: Thu, 21 Jan 2016 15:37:12 +0200 Subject: [PATCH] Make python refer to python2.7 explicitly --- gruntmaster-compile | 2 +- t/01-jobs.t | 2 +- t/problems/hello/tests/python/prog.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 t/problems/hello/tests/python/prog.py diff --git a/gruntmaster-compile b/gruntmaster-compile index c83a03f..3a0dac8 100755 --- a/gruntmaster-compile +++ b/gruntmaster-compile @@ -46,7 +46,7 @@ given ($format){ print OUT "#!/usr/bin/julia -O\n" if $_ eq 'JULIA'; print OUT "#!/usr/bin/perl\n" if $_ eq 'PERL'; print OUT "#!/usr/bin/php -d ONLINE_JUDGE=true\n" if $_ eq 'PHP'; - print OUT "#!/usr/bin/python\n" if $_ eq 'PYTHON'; + print OUT "#!/usr/bin/python2.7\n" if $_ eq 'PYTHON'; print OUT "#!/usr/bin/ruby\n" if $_ eq 'RUBY'; print OUT "#!/usr/bin/sbcl --script\n" if $_ eq 'SBCL'; print OUT while ; diff --git a/t/01-jobs.t b/t/01-jobs.t index 03f4845..6fb5a16 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -32,7 +32,7 @@ use constant COMPILER => { HASKELL ghc PERL perl PHP php - PYTHON python + PYTHON python2.7 RUBY ruby RUST rustc OCAML ocaml diff --git a/t/problems/hello/tests/python/prog.py b/t/problems/hello/tests/python/prog.py old mode 100644 new mode 100755 index b6681c7..28f3af3 --- a/t/problems/hello/tests/python/prog.py +++ b/t/problems/hello/tests/python/prog.py @@ -1,2 +1,2 @@ -#!/usr/bin/python -print 'Hello World!'; +#!/usr/bin/python2.7 +print 'Hello World!' -- 2.30.2