From c8d8fce74ecd219f403be6017636cbc88d59ef51 Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Fri, 1 Sep 2023 10:25:43 +0200 Subject: [PATCH] Add makedirs in fn_context definition --- src/core/pyros_django/obs_config/obsconfig_class.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/core/pyros_django/obs_config/obsconfig_class.py b/src/core/pyros_django/obs_config/obsconfig_class.py index 6a6b970..888d1cf 100644 --- a/src/core/pyros_django/obs_config/obsconfig_class.py +++ b/src/core/pyros_django/obs_config/obsconfig_class.py @@ -311,6 +311,7 @@ class OBSConfig: fn.pathnaming(values["pathnaming"]) root_project_path = os.environ.get("PROJECT_ROOT_PATH", os.path.join(os.getcwd(), "../../../../")) fn.rootdir = os.path.join(root_project_path, values["root_dir"]) + os.makedirs(fn.rootdir, exist_ok=True) fn.extension = values["extension"] return fn -- libgit2 0.21.2