mirror of
http://shenjack.top:5100/ARS/ARS-docs.git
synced 2024-11-23 11:21:06 +08:00
Refactor tag_path creation in parse-label.py
This commit is contained in:
parent
e44e4d132c
commit
73a6ec94e6
|
@ -23,7 +23,7 @@ class TagParser(Options):
|
||||||
|
|
||||||
tag_toml = dumps(self.tags)
|
tag_toml = dumps(self.tags)
|
||||||
tag_path = self.module_root / ".." / "build" / "tags.toml"
|
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)
|
tag_path.touch(exist_ok=True)
|
||||||
with open(tag_path, 'w', encoding='utf-8') as file:
|
with open(tag_path, 'w', encoding='utf-8') as file:
|
||||||
file.write(tag_toml)
|
file.write(tag_toml)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user