summaryrefslogtreecommitdiff
path: root/website/helpers.py
diff options
context:
space:
mode:
authorJayaram R Pai2014-09-09 19:19:12 +0530
committerJayaram R Pai2014-09-09 19:19:12 +0530
commit87abcafdc82e35b211a40bca96c609093eaa1c84 (patch)
tree027a28638e9660e18c98ebbc67f1161d7dd879a4 /website/helpers.py
parent2f78005613b149d7eccb16d1f3bb55f2b20a2db9 (diff)
downloadscilab-on-cloud-87abcafdc82e35b211a40bca96c609093eaa1c84.tar.gz
scilab-on-cloud-87abcafdc82e35b211a40bca96c609093eaa1c84.tar.bz2
scilab-on-cloud-87abcafdc82e35b211a40bca96c609093eaa1c84.zip
added contributor details display
Diffstat (limited to 'website/helpers.py')
-rw-r--r--website/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/website/helpers.py b/website/helpers.py
index 20ef288..e11cfb3 100644
--- a/website/helpers.py
+++ b/website/helpers.py
@@ -17,7 +17,7 @@ def scilab_run(code, token, book_id, dependency_exists):
plot_exists = False
#Finding the plot and appending xs2jpg function
- p = re.compile(r'.*plot.*\(.*,.*,*\).*\n|bode\(.*,.*\)')
+ p = re.compile(r'.*plot.*\(.*\).*\n|bode\(.*\)')
plot_path = ''
if p.search(code):
@@ -49,7 +49,7 @@ def scilab_run(code, token, book_id, dependency_exists):
cmd = 'printf "exec(\'{0}\',2);\nquit();"'.format(file_path)
cmd += ' | /home/cheese/scilab-5.4.1/bin/scilab-adv-cli -nw'
- task = TimerTask(cmd, timeout=10)
+ task = TimerTask(cmd, timeout=15)
output = task.run().communicate()[0]
e = task.wait()