diff --git a/std-script/judge b/std-script/judge --- a/std-script/judge +++ b/std-script/judge @@ -59,6 +59,7 @@ end source_file = ARGV[1] +ENV['SOURCE_NAME'] = source_file if File.exist?(source_file) == false log "The source file does not exist." exit(127) @@ -140,7 +141,7 @@ } begin - execute("#{problem_home}/script/run #{language} #{test_num}", "Error occured during execution of the run script") + execute("#{problem_home}/script/run #{language} #{test_num} ", "Error occured during execution of the run script") rescue # do nothing end