From 8ceaf795d891b75fead6893c8efe8d999b7ff551 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Mar 2021 11:01:39 +0300 Subject: project.boost.download: create missing directories --- project/cmake/build.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'project/cmake') diff --git a/project/cmake/build.py b/project/cmake/build.py index ee5772e..1e9a90d 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -31,7 +31,7 @@ from project.cmake.toolchain import Toolchain from project.configuration import Configuration from project.platform import Platform from project.toolchain import ToolchainType -from project.utils import normalize_path, run, setup_logging +from project.utils import normalize_path, mkdir_parent, run, setup_logging DEFAULT_PLATFORM = None @@ -153,8 +153,7 @@ class BuildParameters: def create_build_dir(self): if self.build_dir is not None: logging.info('Build directory: %s', self.build_dir) - if not os.path.exists(self.build_dir): - os.makedirs(self.build_dir, exist_ok=True) + mkdir_parent(self.build_dir) yield self.build_dir return -- cgit v1.2.3