From f6915cf9cfb4ee185e1ec3f51aa32cea968b2f12 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Fri, 14 Jan 2022 13:14:09 +0100 Subject: [PATCH] Replace only use of app_template_path Co-authored-by: Nicola Soranzo --- lib/galaxy/webapps/base/webapp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/base/webapp.py b/lib/galaxy/webapps/base/webapp.py index 79d6469a206..f869e825fd5 100644 --- a/lib/galaxy/webapps/base/webapp.py +++ b/lib/galaxy/webapps/base/webapp.py @@ -97,10 +97,9 @@ class WebApplication(base.WebApplication): paths = [] base_package = 'tool_shed.webapp' if galaxy_app.name == 'tool_shed' else 'galaxy.webapps.base' # reports has templates in galaxy package base_template_path = files(base_package) / 'templates' - app_template_path = base_template_path / 'webapps' # First look in webapp specific directory if name is not None: - paths.append(app_template_path / name) + paths.append(base_template_path / 'webapps' / name) # Then look in root directory paths.append(base_template_path) # Create TemplateLookup with a small cache