Skip to content
Snippets Groups Projects
Commit 170c9f64 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix plots path

parent 87d3afbd
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ from flask import render_template, send_from_directory
from app import app
PLOTS_PATH = "plots"
PLOTS_PATH = "../plots"
PLOTS = [
......@@ -20,4 +20,7 @@ def index():
@app.route('/plots/<path:filename>')
def custom_static(filename):
print(filename)
filepath = join(app.root_path, PLOTS_PATH)
print(filepath)
return send_from_directory(join(app.root_path, PLOTS_PATH), filename)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment