X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=config.py;h=0a66b75fa0ef92ebaece56a83fc783ecd629e284;hb=be0ed37dd4d6ed52f487a2bb10b543eae0344767;hp=906c447e473b56c5f8c5c67f6f6a1fe34f1064c9;hpb=cc22cc5b2b7e066f5324890ad80a7cba3654a5e5;p=monitor.git diff --git a/config.py b/config.py index 906c447..0a66b75 100644 --- 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 = []