Replace only use of app_template_path

Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
Marius van den Beek
2022-01-19 18:20:19 +00:00
committed by Nicola Soranzo
co-authored by Nicola Soranzo
parent 6fb840f361
commit f6915cf9cf
+1 -2
View File
@@ -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