summaryrefslogtreecommitdiff
path: root/searx/__init__.py
diff options
context:
space:
mode:
authorpw3t <romain@berthor.fr>2014-01-23 22:11:36 +0100
committerpw3t <romain@berthor.fr>2014-01-23 22:11:36 +0100
commit132681b3aaf5b330d9d19624038b51fe2ebfd8d5 (patch)
tree393114f41b487eea4b71dd4073903726310a1257 /searx/__init__.py
parentd6b017efb5b51623a02c85690c7335cfc6674092 (diff)
parent59eeeaab87951fd6fa3302ec240db98902a20b2c (diff)
Merge branch 'master' of https://github.com/asciimoo/searx
Diffstat (limited to 'searx/__init__.py')
-rw-r--r--searx/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/searx/__init__.py b/searx/__init__.py
index e313306e3..375a5414a 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -1,5 +1,5 @@
from os import environ
-from os.path import realpath, dirname, join
+from os.path import realpath, dirname, join, abspath
try:
from yaml import load
except:
@@ -7,8 +7,7 @@ except:
stderr.write('[E] install pyyaml\n')
exit(2)
-
-searx_dir = realpath(dirname(realpath(__file__))+'/../')
+searx_dir = abspath(dirname(__file__))
engine_dir = dirname(realpath(__file__))
if 'SEARX_SETTINGS_PATH' in environ:
@@ -19,4 +18,3 @@ else:
with open(settings_path) as settings_yaml:
settings = load(settings_yaml)
-