~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Kent Gibson
  • Date: 2007-06-08 10:25:35 UTC
  • mfrom: (128.2.2 robey)
  • mto: (128.3.1 robey.kg)
  • mto: This revision was merged to the branch mainline in revision 134.
  • Revision ID: kent@ispirenetworks.com-20070608102535-j9kwvlvy8njlpyb6
merge loggerhead.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
# read loggerhead config
56
56
 
57
57
from configobj import ConfigObj
58
 
config = sys._loggerhead_config = ConfigObj(os.path.join(home, 'loggerhead.conf'), encoding='utf-8')
 
58
config = ConfigObj(os.path.join(home, 'loggerhead.conf'), encoding='utf-8')
59
59
extra_path = config.get('bzrpath', None)
60
60
if extra_path:
61
61
    sys.path.insert(0, extra_path)
85
85
 
86
86
from loggerhead.controllers import Root
87
87
 
 
88
Root = Root(config)
 
89
 
88
90
# re-index every 6 hours
89
91
 
90
92
index_freq = config.get('cache_rebuild_frequency', 6 * 3600)