# HG changeset patch # User Reimar Bauer # Date 1399386750 -7200 # Node ID 591429b2074845a87fabf45078166fcd54671f12 # Parent b209c747888eb1a3150f7684e1e0b87344ae89d1 default path added diff -r b209c747888e -r 591429b20748 eskp.py --- a/eskp.py Tue May 06 16:22:40 2014 +0200 +++ b/eskp.py Tue May 06 16:32:30 2014 +0200 @@ -14,6 +14,9 @@ LANGUAGE_SELECTED = "de" #ToDo after engelish is implemented set LANGUAGE_SELECTED = None +# We need the path of this file to find templates to translate +ESKP_PATH = os.path.dirname(os.path.abspath(__file__)) + app = Flask(__name__) babel = Babel(app) @@ -22,6 +25,7 @@ def get_content(filename, overrides=None): content = u"" + filename = os.path.join(ESKP_PATH, filename) if os.path.isfile(filename): with codecs.open(filename, 'r', 'utf-8') as f: rst_data = f.read()