Changeset - 1097603f5499
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2020-11-12 19:11:11
mads@kiilerich.com
Grafted from: abc61a0dda73
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.
1 file changed with 0 insertions and 9 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/indexers/daemon.py
Show inline comments
 
@@ -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')
 

	
 

	
0 comments (0 inline, 0 general)