mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-14 22:22:18 +00:00
a1e430c0da
rid of those mysql server gone away messages/etc
15 lines
272 B
Python
Executable File
15 lines
272 B
Python
Executable File
# coding: utf-8
|
|
|
|
import os.path, sys
|
|
sys.path.insert(0, '/home/emory/supysonic')
|
|
|
|
import config
|
|
if not config.check():
|
|
sys.exit(1)
|
|
|
|
if not os.path.exists(config.get('base', 'cache_dir')):
|
|
os.makedirs(config.get('base', 'cache_dir'))
|
|
|
|
from web import app as application
|
|
|