1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-10 04:02:17 +00:00
supysonic/main.py
2012-12-09 21:18:49 +01:00

20 lines
335 B
Python
Executable File

# coding: utf-8
import config
import os.path, sys
if __name__ == '__main__':
if not config.check():
print >>sys.stderr, "Couldn't find configuration file"
sys.exit(1)
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)