diff options
author | Jayaram R Pai | 2014-09-09 19:19:12 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-09-09 19:19:12 +0530 |
commit | 87abcafdc82e35b211a40bca96c609093eaa1c84 (patch) | |
tree | 027a28638e9660e18c98ebbc67f1161d7dd879a4 /website/helpers.py | |
parent | 2f78005613b149d7eccb16d1f3bb55f2b20a2db9 (diff) | |
download | scilab-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.py | 4 |
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() |