summaryrefslogtreecommitdiff
path: root/SendLog.py
diff options
context:
space:
mode:
Diffstat (limited to 'SendLog.py')
-rwxr-xr-xSendLog.py5
1 files changed, 4 insertions, 1 deletions
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