aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-14 11:01:39 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-14 14:53:06 +0300
commit8ceaf795d891b75fead6893c8efe8d999b7ff551 (patch)
tree9b2180082b034141a81bd227df86fa3c5ca31043 /project/utils.py
parentworkflows/ci_appveyor: create C:\projects before caching (diff)
downloadcmake-common-8ceaf795d891b75fead6893c8efe8d999b7ff551.tar.gz
cmake-common-8ceaf795d891b75fead6893c8efe8d999b7ff551.zip
project.boost.download: create missing directories
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py4
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(