aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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(