aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-07-24 14:45:18 +0200
committerKarel Kočí <cynerd@email.cz>2015-07-24 14:45:18 +0200
commit7f399b7f61097cc8fc8e44f9ee556fcd74a7002f (patch)
treea57899a90fb2d3260a6bdf9bef9a0d7d9f730f8d /scripts
parent1494d28f78752e3a613e5a9fd3eefcb24b1e60ad (diff)
downloadlinux-conf-perf-7f399b7f61097cc8fc8e44f9ee556fcd74a7002f.tar.gz
linux-conf-perf-7f399b7f61097cc8fc8e44f9ee556fcd74a7002f.tar.bz2
linux-conf-perf-7f399b7f61097cc8fc8e44f9ee556fcd74a7002f.zip
Fix bugs in initialise script
Added missing import. Every folder creation must have it's own exception block. Removed additional import of exceptions.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/initialize.py10
1 files changed, 8 insertions, 2 deletions
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