diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-14 11:01:39 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-14 14:53:06 +0300 |
commit | 8ceaf795d891b75fead6893c8efe8d999b7ff551 (patch) | |
tree | 9b2180082b034141a81bd227df86fa3c5ca31043 /project/utils.py | |
parent | workflows/ci_appveyor: create C:\projects before caching (diff) | |
download | cmake-common-8ceaf795d891b75fead6893c8efe8d999b7ff551.tar.gz cmake-common-8ceaf795d891b75fead6893c8efe8d999b7ff551.zip |
project.boost.download: create missing directories
Diffstat (limited to '')
-rw-r--r-- | project/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/project/utils.py b/project/utils.py index 76557b1..c63b8a4 100644 --- a/project/utils.py +++ b/project/utils.py @@ -16,6 +16,10 @@ def normalize_path(s): return os.path.abspath(os.path.normpath(s)) +def mkdir_parent(path): + os.makedirs(path, exist_ok=True) + + @contextmanager def setup_logging(): logging.basicConfig( |