From 170c9f64926bd690de14c8d177a21f3f2fa1c1d4 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Mon, 26 Mar 2018 17:34:38 +0200 Subject: [PATCH] Fix plots path --- app/routes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index d80418e..c71972c 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) -- GitLab