From bc9f97bcc6fbe57174431ee8790ebf2e62c95494 Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Fri, 23 Dec 2016 23:03:31 +0530 Subject: Update README --- README.md | 18 +++++++++++++++--- SendLog.py | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c485976..efb0e89 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,21 @@ The main aim of this project will be to port core functionalities of Xcos to a b ## Installation -* Download the sources of Scilab 5.5.2 32 bit from `https://github.com/kamakshidasan/scilab` -* After building, change the Scilab path in SendLog.py -* Host on Flask and run index.html +1. First clone following repositories: + + `git clone https://github.com/FOSSEE/xcos-on-web` + + `git clone https://github.com/Hrily/scilab` + +2. Then go into `scilab` folder and run following commands: + + `./configure` + + `make` + +3. Then run `SendLog.py` from `xcos-on-web` folder to host the xcos on localhost i.e. `127.0.0.1:8001/` + +(Note that the directories `scilab` and `xcos-on-web` must be in same directory.) ## License information This project has a Creative Commons Public License. diff --git a/SendLog.py b/SendLog.py index 9f0af39..91354b6 100755 --- a/SendLog.py +++ b/SendLog.py @@ -29,7 +29,7 @@ ENDING = 1 DATA = 2 NOLINE = -1 # Scilab dir, can't run absolute paths -SCI = "../../../../scilab/scilab_master_old/scilab/" +SCI = "../scilab/" # List to store figure IDs figure_list = [] # List to store filenames of files -- cgit From 16722d9829a4f9c55a7a4b8bc702c3ec595388e5 Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Fri, 23 Dec 2016 23:10:56 +0530 Subject: Bug fix for uploads/ directory --- SendLog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SendLog.py b/SendLog.py index 91354b6..3be5d3e 100755 --- a/SendLog.py +++ b/SendLog.py @@ -18,6 +18,9 @@ app = Flask(__name__, static_folder='webapp/') # This is the path to the upload directory app.config['UPLOAD_FOLDER'] = 'uploads/' +# Make the upload directory if not available +subprocess.Popen('mkdir -p ' + app.config['UPLOAD_FOLDER'], shell = True) + # These are the extension that we are accepting to be uploaded app.config['ALLOWED_EXTENSIONS'] = set(['zcos', 'xcos']) -- cgit