mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
18 lines
285 B
Plaintext
18 lines
285 B
Plaintext
|
# coding: utf-8
|
||
|
|
||
|
import os.path, sys
|
||
|
sys.path.insert(0, '/path/to/the/supysonic/app')
|
||
|
|
||
|
import config
|
||
|
if not config.check():
|
||
|
sys.exit(1)
|
||
|
|
||
|
if not os.path.exists(config.get('CACHE_DIR')):
|
||
|
os.makedirs(config.get('CACHE_DIR'))
|
||
|
|
||
|
import db
|
||
|
db.init_db()
|
||
|
|
||
|
from web import app as application
|
||
|
|