forked from Ponysearch/Ponysearch
[enh] config checks
This commit is contained in:
parent
43f5fcea80
commit
09e7353307
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ def load_module(filename):
|
||||||
module.name = modname
|
module.name = modname
|
||||||
return module
|
return module
|
||||||
|
|
||||||
|
if not engines_config.sections():
|
||||||
|
print '[E] Error no engines found. Edit your engines.cfg'
|
||||||
|
exit(2)
|
||||||
|
|
||||||
for section in engines_config.sections():
|
for section in engines_config.sections():
|
||||||
engine_data = engines_config.options(section)
|
engine_data = engines_config.options(section)
|
||||||
engine = load_module(engines_config.get(section, 'engine')+'.py')
|
engine = load_module(engines_config.get(section, 'engine')+'.py')
|
||||||
|
|
Loading…
Reference in a new issue