From 5acf09a1ee13c6be2cd599ed4d1139795766f0b6 Mon Sep 17 00:00:00 2001 From: Roland Haroutiounian Date: Wed, 13 Jan 2016 08:52:33 +0100 Subject: [PATCH] Template Loading doesn't use settings_local anymore --- Template/Loader.py | 4 ++-- settings.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Template/Loader.py b/Template/Loader.py index 620c19b..d716abf 100644 --- a/Template/Loader.py +++ b/Template/Loader.py @@ -1,7 +1,7 @@ #-*- coding: utf-8 -*- import jinja2 -import settings_local +import settings class TemplateLoader(object): @@ -12,7 +12,7 @@ class TemplateLoader(object): # it to the root "/". By default, it will be the root of the project, defined in the # settings of the application # @param follow_links bool : indicates whether or not to follow the symbolic links (default: True) - def __init__(self, search_path=settings_local.base_path, follow_links=True): + def __init__(self, search_path=settings.base_path, follow_links=True): self.search_path = search_path self.follow_links = follow_links diff --git a/settings.py b/settings.py index 0795835..2bc874f 100644 --- a/settings.py +++ b/settings.py @@ -2,7 +2,9 @@ ## @package settings Configuration file import pymysql +import os +base_path = os.path.dirname(os.path.abspath(__file__)) debug = False debug_sql = False