fix: store relative path to root
All checks were successful
build / build (push) Successful in 2m46s

This commit is contained in:
张泊明518370910136 2025-02-27 00:24:37 -05:00
parent ab5bfc6cfe
commit c4639aef76
GPG Key ID: D47306D7062CDA9D

View File

@ -72,9 +72,9 @@ def convert(
)
task_obj = rtoml.loads(task_toml_path.read_text())
repo_conf = repo.Config(**repo_obj)
repo_conf.path = repo_toml_path
repo_conf.path = repo_toml_path.relative_to(root)
task_conf = task.Config(**task_obj)
task_conf.path = task_toml_path
task_conf.path = task_toml_path.relative_to(root)
result_model = convert_conf(repo_conf, task_conf)
result_dict = result_model.model_dump(by_alias=True, exclude_none=True)
with result_json_path.open("w") as result_file: