From: Sergiu Date: Thu, 21 Jan 2016 13:37:12 +0000 (+0200) Subject: Make python refer to python2.7 explicitly X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=92fbf93360dc44a13c48ad68be8333a461927f36 Make python refer to python2.7 explicitly --- 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!'