Auto-create necessary folders for Sphinx. Mod Readme.md

This commit is contained in:
jar3b
2016-03-12 21:00:30 +03:00
parent a5f4344ecb
commit 0d9cfbfd3b
2 changed files with 14 additions and 6 deletions

View File

@@ -21,6 +21,14 @@ class SphinxHelper:
if not os.path.exists(folders.temp):
os.makedirs(folders.temp)
# оздаем 3 папки для Сфинкса
if not os.path.exists(sphinx_conf.var_dir+'/run'):
os.makedirs(sphinx_conf.var_dir+'/run')
if not os.path.exists(sphinx_conf.var_dir+'/log'):
os.makedirs(sphinx_conf.var_dir+'/log')
if not os.path.exists(sphinx_conf.var_dir+'/data'):
os.makedirs(sphinx_conf.var_dir+'/data')
def configure_indexer(self, indexer_binary, config_filename):
logging.info("Start configuring Sphinx...")
self.index_binary = indexer_binary