summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-12-24 12:06:08 -0500
committerDaniil Baturin <daniil@baturin.org>2015-12-24 12:06:08 -0500
commitdaf94a4bab985b33f17d6b8474c49213bead4f84 (patch)
treec78db641e00f44cfcd3a233e200dd9c57ce99d02 /scripts
parent6e66715c45a77be01855f269e03a9e6be1e50bf4 (diff)
downloadvyos-build-daf94a4bab985b33f17d6b8474c49213bead4f84.tar.gz
vyos-build-daf94a4bab985b33f17d6b8474c49213bead4f84.zip
Make the configure script create the build/ dir if it doesn't exist.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-config4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build-config b/scripts/build-config
index 7d1aa66b..542c4665 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -7,6 +7,7 @@ import os
import getpass
import platform
import json
+import distutils.dir_util
import defaults
@@ -42,5 +43,8 @@ for k, v in args.items():
sys.exit(1)
# Save to file
+
+distutils.dir_util.mkpath(defaults.BUILD_DIR)
+
with open(defaults.BUILD_CONFIG, 'w') as f:
json.dump(args, f)