1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00

Fix handling of missing config file

This commit is contained in:
Alban 2012-11-16 15:25:39 +01:00 committed by Alban
parent 24cbf47f31
commit 3e89c102e9

View File

@ -1,8 +1,7 @@
# coding: utf-8
from web import app
import db, config
import os.path
import config
import os.path, sys
if __name__ == '__main__':
if not config.check():
@ -12,6 +11,9 @@ if __name__ == '__main__':
if not os.path.exists(config.get('CACHE_DIR')):
os.makedirs(config.get('CACHE_DIR'))
import db
from web import app
db.init_db()
app.run(debug = True)