1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-15 06:32:16 +00:00
supysonic/main.wsgi
Emory P 5252111e91 some status messages for scan and flush database more often during scan
to prevent error from cancelling entire scan
2013-11-01 14:46:16 -04:00

18 lines
296 B
Python
Executable File

# coding: utf-8
import os.path, sys
sys.path.insert(0, '/home/emory/supysonic')
import config
if not config.check():
sys.exit(1)
if not os.path.exists(config.get('base', 'cache_dir')):
os.makedirs(config.get('base', 'cache_dir'))
import db
db.init_db()
from web import app as application