From 73a6ec94e68abe27e49b9e66da017c42e45cac67 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 14 Dec 2023 18:23:27 +0800 Subject: [PATCH] Refactor tag_path creation in parse-label.py --- scripts/parse-label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/parse-label.py b/scripts/parse-label.py index 0e43877..e5f5c4d 100644 --- a/scripts/parse-label.py +++ b/scripts/parse-label.py @@ -23,7 +23,7 @@ class TagParser(Options): tag_toml = dumps(self.tags) tag_path = self.module_root / ".." / "build" / "tags.toml" - tag_path.mkdir(parents=True, exist_ok=True) + tag_path.parent.mkdir(parents=True, exist_ok=True) tag_path.touch(exist_ok=True) with open(tag_path, 'w', encoding='utf-8') as file: file.write(tag_toml)