1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-14 22:22:18 +00:00
supysonic/main.py
Emory P a1e430c0da add flask-sqlalchemy library to handle session management better
rid of those mysql server gone away messages/etc
2013-12-14 19:50:12 -05:00

18 lines
298 B
Python
Executable File

# coding: utf-8
import config
import os.path, sys
if __name__ == '__main__':
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
from web import app
app.run(host = '0.0.0.0', debug = True)