summaryrefslogtreecommitdiff
path: root/yaksh/cpp_stdio_evaluator.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-12-27 23:55:01 +0530
committerGitHub2016-12-27 23:55:01 +0530
commit48df2c1b30fa4bfc256399bbaadcbdefa555623d (patch)
treee1c4140c315655a9b57536e6550ac5eff5d67c4c /yaksh/cpp_stdio_evaluator.py
parent48366e84b98157ac32b22b2aa19b1c1cde68afd4 (diff)
parent1b9a870975c1e2492b692ab8ec58bc3c628dcd82 (diff)
downloadonline_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.gz
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.tar.bz2
online_test-48df2c1b30fa4bfc256399bbaadcbdefa555623d.zip
Merge pull request #167 from adityacp/new_fix_evaluators
Modify Evaluators to take moderator code as test case instead of files
Diffstat (limited to 'yaksh/cpp_stdio_evaluator.py')
-rw-r--r--yaksh/cpp_stdio_evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/cpp_stdio_evaluator.py b/yaksh/cpp_stdio_evaluator.py
index c318a82..d1dcd65 100644
--- a/yaksh/cpp_stdio_evaluator.py
+++ b/yaksh/cpp_stdio_evaluator.py
@@ -13,7 +13,6 @@ class CppStdIOEvaluator(StdIOEvaluator):
"""Evaluates C StdIO based code"""
def __init__(self, metadata, test_case_data):
self.files = []
- self.submit_code_path = self.create_submit_code_file('submit.c')
# Set metadata values
self.user_answer = metadata.get('user_answer')
@@ -43,6 +42,7 @@ class CppStdIOEvaluator(StdIOEvaluator):
return compile_command, compile_main
def compile_code(self):
+ self.submit_code_path = self.create_submit_code_file('submit.c')
if self.file_paths:
self.files = copy_files(file_paths)
if not isfile(self.submit_code_path):