mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
20 lines
330 B
Python
Executable File
20 lines
330 B
Python
Executable File
#!/usr/bin/python
|
|
# 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
|
|
|
|
db.init_db()
|
|
app.run(host = '0.0.0.0', debug = True)
|
|
|