diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-12-24 12:06:08 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-12-24 12:06:08 -0500 |
commit | daf94a4bab985b33f17d6b8474c49213bead4f84 (patch) | |
tree | c78db641e00f44cfcd3a233e200dd9c57ce99d02 /scripts | |
parent | 6e66715c45a77be01855f269e03a9e6be1e50bf4 (diff) | |
download | vyos-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-x | scripts/build-config | 4 |
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) |