summaryrefslogtreecommitdiff
path: root/testapp/exam/evaluate_scilab.py
diff options
context:
space:
mode:
authorankitjavalkar2015-04-21 18:15:10 +0530
committerankitjavalkar2015-04-26 19:46:01 +0530
commit0580f99fecc0bb495beb5706e18246834174710b (patch)
treed3c427f14f44d3018fe1592f276c27e16fe77fb2 /testapp/exam/evaluate_scilab.py
parent3ffdba6e587422a0f2955879d12e0b2aeac342e1 (diff)
downloadonline_test-0580f99fecc0bb495beb5706e18246834174710b.tar.gz
online_test-0580f99fecc0bb495beb5706e18246834174710b.tar.bz2
online_test-0580f99fecc0bb495beb5706e18246834174710b.zip
Add code checker registration class
Diffstat (limited to 'testapp/exam/evaluate_scilab.py')
-rw-r--r--testapp/exam/evaluate_scilab.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testapp/exam/evaluate_scilab.py b/testapp/exam/evaluate_scilab.py
index e36d9d8..1874cf6 100644
--- a/testapp/exam/evaluate_scilab.py
+++ b/testapp/exam/evaluate_scilab.py
@@ -8,6 +8,7 @@ import importlib
# local imports
from code_server import TestCode
+from registry import registryz
class EvaluateScilab(TestCode):
@@ -76,4 +77,6 @@ class EvaluateScilab(TestCode):
for l in out.split('\n'):
if l.strip():
strip_out = strip_out+"\n"+l.strip()
- return strip_out \ No newline at end of file
+ return strip_out
+
+registry.register('scilab', evaluate_scilab, EvaluateScilab) \ No newline at end of file