summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamakshidasan2016-12-24 00:27:11 +0530
committerGitHub2016-12-24 00:27:11 +0530
commitcfe64eccaea27520bf859ec27f5976d6029378e9 (patch)
treed0c722111c6d8bed044180dedb6771a61e58aed7
parentc960f0d4fb9b6a68e0c33a0248fc5ce1f1bf62ab (diff)
parent16722d9829a4f9c55a7a4b8bc702c3ec595388e5 (diff)
downloadxcos-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.md18
-rwxr-xr-xSendLog.py5
2 files changed, 19 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..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'])
@@ -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