summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-30 19:02:23 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-30 19:02:23 +0100
commit0bf9b299e7dc9af3389854d94fc92a98419ba4ea (patch)
tree1a04dd1e35893a02e459e7a761fd12bceb993f3c
parent4c1ee95b83bfc7f7e9464a657fbee1f9d7639beb (diff)
downloadsearxng-0bf9b299e7dc9af3389854d94fc92a98419ba4ea.tar.gz
searxng-0bf9b299e7dc9af3389854d94fc92a98419ba4ea.zip
[fix] using absolute templatepaths
-rw-r--r--searx/webapp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 820775c8b..5731d289f 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -25,7 +25,7 @@ from flask import Flask, request, render_template
from flask import url_for, Response, make_response, redirect
from flask import send_from_directory
-from searx import settings
+from searx import settings, searx_dir
from searx.engines import search, categories, engines, get_engines_stats
from searx.utils import UnicodeWriter
from searx.utils import highlight_content, html_to_text
@@ -35,8 +35,8 @@ from flask.ext.babel import Babel
app = Flask(
__name__,
- static_folder=os.path.join(os.path.dirname(__file__), 'static'),
- template_folder=os.path.join(os.path.dirname(__file__), 'templates')
+ static_folder=os.path.join(searx_dir, 'static'),
+ template_folder=os.path.join(searx_dir, 'templates')
)
app.secret_key = settings['server']['secret_key']