From dbfb2a7457b31df55487d906534938b22e2654d9 Mon Sep 17 00:00:00 2001 From: William Moreno Reyes Date: Aug 22 2016 23:07:25 +0000 Subject: Fix 225 issues in pagure/__init__.py Signed-off-by: William Moreno Reyes --- diff --git a/pagure/__init__.py b/pagure/__init__.py index ceb0a06..248f5da 100644 --- a/pagure/__init__.py +++ b/pagure/__init__.py @@ -56,7 +56,7 @@ if APP.config.get('THEME_TEMPLATE_FOLDER', False): # That's what we do here template_folder = APP.config['THEME_TEMPLATE_FOLDER'] if template_folder[0] != '/': - template_folder= os.path.join( + template_folder = os.path.join( APP.root_path, APP.template_folder, template_folder) import jinja2 # Jinja looks for the template in the order of the folders specified @@ -70,7 +70,7 @@ if APP.config.get('THEME_TEMPLATE_FOLDER', False): if APP.config.get('THEME_STATIC_FOLDER', False): static_folder = APP.config['THEME_STATIC_FOLDER'] if static_folder[0] != '/': - static_folder= os.path.join( + static_folder = os.path.join( APP.root_path, 'static', static_folder) # Unlike templates, to serve static files from multiples folders we # need flask-multistatic