summaryrefslogtreecommitdiff
path: root/yaksh/python_stdout_evaluator.py
diff options
context:
space:
mode:
authoradityacp2016-07-11 16:37:50 +0530
committeradityacp2016-07-28 15:56:06 +0530
commitdf9a893b91b4adb39f01b88f6b6d96359db37f47 (patch)
tree550368dc971592f859928c5ba1ecc30d0debae53 /yaksh/python_stdout_evaluator.py
parentf84e26b203c77d4cf5c78860f43448a5858803c6 (diff)
downloadonline_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.tar.gz
online_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.tar.bz2
online_test-df9a893b91b4adb39f01b88f6b6d96359db37f47.zip
changed file module name in evaluators
Diffstat (limited to 'yaksh/python_stdout_evaluator.py')
-rw-r--r--yaksh/python_stdout_evaluator.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/yaksh/python_stdout_evaluator.py b/yaksh/python_stdout_evaluator.py
index fa8d6c6..8f69b24 100644
--- a/yaksh/python_stdout_evaluator.py
+++ b/yaksh/python_stdout_evaluator.py
@@ -8,7 +8,7 @@ from contextlib import contextmanager
# local imports
from code_evaluator import CodeEvaluator
-from copy_delete_files import CopyDeleteFiles
+from file_utils import copy_files, delete_files
@contextmanager
@@ -29,15 +29,13 @@ class PythonStdoutEvaluator(CodeEvaluator):
def teardown(self):
super(PythonStdoutEvaluator, self).teardown()
# Delete the created file.
- if self.files_list:
- file_delete = CopyDeleteFiles()
- file_delete.delete_files(self.files_list)
+ if self.files:
+ delete_files(self.files)
def compile_code(self, user_answer, file_paths, expected_output):
- self.files_list = []
+ self.files = []
if file_paths:
- file_copy = CopyDeleteFiles()
- self.files_list = file_copy.copy_files(file_paths)
+ self.files = copy_files(file_paths)
if hasattr(self, 'output_value'):
return None
else: