start app controllers that aims to replace liquidsoap on long term, and be more generic and reusable
This commit is contained in:
13
controllers/settings.py
Executable file
13
controllers/settings.py
Executable file
@ -0,0 +1,13 @@
|
||||
import os
|
||||
import stat
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
def ensure (key, default):
|
||||
globals()[key] = getattr(settings, key, default)
|
||||
|
||||
|
||||
# Working directory for the controllers
|
||||
ensure('AIRCOX_CONTROLLERS_MEDIA', '/tmp/aircox')
|
||||
|
||||
|
Reference in New Issue
Block a user