From 55cb98184b1342cb04c69ea47c268fdc3cbb3c52 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 24 Sep 2015 15:02:23 +0200 Subject: Create WEB_OUTPUT directory if it doesn't exist --- scripts/build_web_resources.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/build_web_resources.py b/scripts/build_web_resources.py index f90ce24..44a2073 100644 --- a/scripts/build_web_resources.py +++ b/scripts/build_web_resources.py @@ -54,6 +54,9 @@ problem_common_props = { # for common.py inside the problem subdirectory languages = {} # programming languages, info from database groups = {} # problem groups, info from database +if not os.path.exists(output_path): + os.mkdir(output_path) + conn = db.get_connection() cur = conn.cursor() -- cgit v1.2.1