diff options
author | Prabhu Ramachandran | 2016-10-26 18:42:08 +0530 |
---|---|---|
committer | GitHub | 2016-10-26 18:42:08 +0530 |
commit | f563640af941a50642dc5eb6e63b1d63a1685046 (patch) | |
tree | f4326fe26c0198a0b5a331fe9ec74e6a036ef329 /yaksh/code_evaluator.py | |
parent | 08d8478a6a57991b0130c5610db6efa7bc9e5a66 (diff) | |
parent | a08fab86403b7aa2f813e5bafab08f7777ac3537 (diff) | |
download | online_test-f563640af941a50642dc5eb6e63b1d63a1685046.tar.gz online_test-f563640af941a50642dc5eb6e63b1d63a1685046.tar.bz2 online_test-f563640af941a50642dc5eb6e63b1d63a1685046.zip |
Merge pull request #149 from adityacp/fixed_output_dir_creation
Fixed output directory creation
Diffstat (limited to 'yaksh/code_evaluator.py')
-rw-r--r-- | yaksh/code_evaluator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/code_evaluator.py b/yaksh/code_evaluator.py index 870a67f..79f616d 100644 --- a/yaksh/code_evaluator.py +++ b/yaksh/code_evaluator.py @@ -94,6 +94,9 @@ class CodeEvaluator(object): # Private Protocol ########## def setup(self): + if self.in_dir: + if not os.path.exists(self.in_dir): + os.makedirs(self.in_dir) self._change_dir(self.in_dir) def safe_evaluate(self, user_answer, test_case_data, file_paths=None): |