major steps to complete for the packaging of monitor-server
[monitor.git] / config.py
index 906c447..0a66b75 100644 (file)
--- a/config.py
+++ b/config.py
@@ -23,6 +23,13 @@ def parse_bool(option, opt_str, value, parser):
        else:
                print "blue"
 
+def setFileFromList(file, list):
+       f = open(file, 'w')
+       for line in list:
+               f.write(line + "\n")
+       f.close()
+       return True
+
 def getListFromFile(file):
        f = open(file, 'r')
        list = []