pypo-initialize syntax cleanup

This commit is contained in:
Martin Konecny 2012-05-28 14:28:07 -04:00
parent 34523e8ec9
commit 41efd93628

View file

@ -48,9 +48,7 @@ def generate_liquidsoap_config(ss):
buffer = d[u'keyname'] + " = "
if(d[u'type'] == 'string'):
temp = d[u'value']
if(temp == ""):
temp = ""
buffer += "\"" + temp + "\""
buffer += '"%s"' % temp
else:
temp = d[u'value']
if(temp == ""):
@ -58,7 +56,7 @@ def generate_liquidsoap_config(ss):
buffer += temp
buffer += "\n"
fh.write(api_client.encode_to(buffer))
fh.write("log_file = \"/var/log/airtime/pypo-liquidsoap/<script>.log\"\n");
fh.write('log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"\n')
fh.close()
PATH_INI_FILE = '/etc/airtime/pypo.cfg'