fix: path to past test

This commit is contained in:
李衍志523370910113 2024-11-07 23:35:07 +08:00
parent 0324313f92
commit a7c5e0c925

View File

@ -51,10 +51,10 @@ def convert(root: Path = Path(".")) -> None:
Convert given dir of JOJ3 toml config files to JOJ3 json config files Convert given dir of JOJ3 toml config files to JOJ3 json config files
""" """
logger.info(f"Converting files in {root.absolute()}") logger.info(f"Converting files in {root.absolute()}")
repo_toml_path = os.path.join(root, "repo.toml") repo_toml_path = os.path.join(root, "basic", "repo.toml")
# TODO: loop through all dirs to find all task.toml # TODO: loop through all dirs to find all task.toml
task_toml_path = os.path.join(root, "task.toml") task_toml_path = os.path.join(root, "basic", "task.toml")
result_json_path = os.path.join(root, "task.json") result_json_path = os.path.join(root, "basic", "task.json")
with open(repo_toml_path) as repo_file: with open(repo_toml_path) as repo_file:
repo_toml = repo_file.read() repo_toml = repo_file.read()
with open(task_toml_path) as task_file: with open(task_toml_path) as task_file: