| |
@@ -56,7 +56,7 @@
|
| |
# 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_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
|
| |
First than all, the tool was remaned to pycodestyle, any way some pep8 codestyle fixes