From 5f5fe80b0c5b0f23c21e08bc37570fb3e52acdaf Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Sat, 1 Oct 2016 22:05:30 +0000 Subject: Added the missing util.py file git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@352 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/util.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 kpov_judge/util.py (limited to 'kpov_judge') diff --git a/kpov_judge/util.py b/kpov_judge/util.py new file mode 100644 index 0000000..bdcc690 --- /dev/null +++ b/kpov_judge/util.py @@ -0,0 +1,10 @@ +import yaml + +def write_default_config(disk, params): + default_params = dict() + for k in [ + 'task_name', + 'task_url']: + if k in params: + default_params[k] = params[k] + disk.write(yaml.dump(default_params)) -- cgit v1.2.1