diff options
author | Kamakshidasan | 2016-12-24 00:27:11 +0530 |
---|---|---|
committer | GitHub | 2016-12-24 00:27:11 +0530 |
commit | cfe64eccaea27520bf859ec27f5976d6029378e9 (patch) | |
tree | d0c722111c6d8bed044180dedb6771a61e58aed7 | |
parent | c960f0d4fb9b6a68e0c33a0248fc5ce1f1bf62ab (diff) | |
parent | 16722d9829a4f9c55a7a4b8bc702c3ec595388e5 (diff) | |
download | xcos-on-web-cfe64eccaea27520bf859ec27f5976d6029378e9.tar.gz xcos-on-web-cfe64eccaea27520bf859ec27f5976d6029378e9.tar.bz2 xcos-on-web-cfe64eccaea27520bf859ec27f5976d6029378e9.zip |
Merge pull request #188 from Hrily/master
Update README
-rw-r--r-- | README.md | 18 | ||||
-rwxr-xr-x | SendLog.py | 5 |
2 files changed, 19 insertions, 4 deletions
@@ -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. @@ -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']) @@ -29,7 +32,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 |