summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-05-26 09:45:09 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-05-26 21:17:19 +0200
commit85364edaf077de42b24cc5e16507181208780c5e (patch)
treecae666eba2ea37f2ec551bb69f0da6264df73374 /searx/webapp.py
parent7c76cef746a90542f7db7a9ca876e763d0aad1a3 (diff)
[fix] webapp.py - running without installation is not supported
Remove extension of the sys.path (aka PYTHONPATH). Running instance directly from repository's folder is a relict from the early beginning in 2014 (fd651083f) and is no longer supported. Since commit dd46629 was merged the command line 'searx-run' exists and should be used. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 7df12af18..ae98d1964 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -22,10 +22,6 @@ if sys.version_info[0] < 3:
print('\033[1;31m Python2 is no longer supported\033[0m')
exit(1)
-if __name__ == '__main__':
- from os.path import realpath, dirname
- sys.path.append(realpath(dirname(realpath(__file__)) + '/../'))
-
# set Unix thread name
try:
import setproctitle