summaryrefslogtreecommitdiff
path: root/yaksh/cpp_stdio_evaluator.py
diff options
context:
space:
mode:
authoradityacp2016-12-28 14:21:17 +0530
committeradityacp2016-12-28 14:21:17 +0530
commit537e3fb2e3ed637e1429ce815165b23d53b70ff7 (patch)
tree964ffdfd825947c14d15f19aca8b0c800e852742 /yaksh/cpp_stdio_evaluator.py
parent135ebb1ae4dbc5e1bc4297fa31413d89ac4405f3 (diff)
parent011ca73b4c1042ceb208974e57c11474ecea65f2 (diff)
downloadonline_test-537e3fb2e3ed637e1429ce815165b23d53b70ff7.tar.gz
online_test-537e3fb2e3ed637e1429ce815165b23d53b70ff7.tar.bz2
online_test-537e3fb2e3ed637e1429ce815165b23d53b70ff7.zip
Merge https://github.com/fossee/online_test into update_docs
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):