diff --git a/app/routes.py b/app/routes.py index d80418e430e8fa5513a2b99143721bae483e4456..c71972c6d8cb125e1b00484ef1a8f28efbd98b60 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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)