# HG changeset patch # User Mads Kiilerich # Date 2020-11-12 19:11:11 # Node ID 1097603f5499ecd2ae4ee96f3437d24a1bbd84c8 # Parent 3672a8e4584afbe5c2a6ea5bb2a5eb9e5f8ce177 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. diff --git a/kallithea/lib/indexers/daemon.py b/kallithea/lib/indexers/daemon.py --- a/kallithea/lib/indexers/daemon.py +++ b/kallithea/lib/indexers/daemon.py @@ -28,9 +28,7 @@ Original author and date, and relevant c 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 import db 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')