changeset 8807:1097603f5499

indexers: drop sys.path mangling in daemon The original comment in b153a51b1d3b was "to get the pylons_app import" ... which seems like a bad workaround for not having installed the app properly before running.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 12 Nov 2020 19:11:11 +0100
parents 3672a8e4584a
children 9a2c0a067c6e
files kallithea/lib/indexers/daemon.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/indexers/daemon.py	Mon Dec 14 17:56:31 2020 +0100
+++ b/kallithea/lib/indexers/daemon.py	Thu Nov 12 19:11:11 2020 +0100
@@ -28,9 +28,7 @@
 
 import logging
 import os
-import sys
 import traceback
-from os.path import dirname
 from shutil import rmtree
 from time import mktime
 
@@ -45,13 +43,6 @@
 from kallithea.model.scm import ScmModel
 
 
-# Add location of top level folder to sys.path
-project_path = dirname(dirname(dirname(dirname(os.path.realpath(__file__)))))
-sys.path.append(project_path)
-
-
-
-
 log = logging.getLogger('whoosh_indexer')