From 7f399b7f61097cc8fc8e44f9ee556fcd74a7002f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Jul 2015 14:45:18 +0200 Subject: Fix bugs in initialise script Added missing import. Every folder creation must have it's own exception block. Removed additional import of exceptions. --- scripts/initialize.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/initialize.py b/scripts/initialize.py index 76a78e9..146acbf 100755 --- a/scripts/initialize.py +++ b/scripts/initialize.py @@ -5,14 +5,13 @@ import subprocess import shutil import utils +import database from conf import conf from conf import sf import exceptions import loop import configurations -import exceptions - def all(): base() parse_kconfig() @@ -28,6 +27,13 @@ def base(): print('Initialize base...') try: os.mkdir(sf(conf.build_folder)) + except FileExistsError: + pass + try: + os.mkdir(sf(conf.configurations_folder)) + except FileExistsError: + pass + try: os.mkdir(sf(conf.log_folder)) except FileExistsError: pass -- cgit v1.2.3