add liquidsoap output models and configuration

This commit is contained in:
bkfox
2015-12-12 15:50:24 +01:00
parent 190da4fd4f
commit 8911f90875
3 changed files with 31 additions and 62 deletions

View File

@ -462,14 +462,9 @@ class Program (Nameable):
Make sur the program's dir exists (and optionally subdir). Return True
if the dir (or subdir) exists.
"""
path = self.path
if not os.path.exists(path):
os.mkdir(path)
if subdir:
path = os.path.join(path, subdir)
if not os.path.exists(path):
os.mkdir(path)
path = os.path.join(self.path, subdir) if subdir else \
self.path
os.makedirs(path, exist_ok = True)
return os.path.exists(path)
def find_schedule (self, date):