From a7c5e0c925c441dc86bc37101640e9eaa6f9d039 Mon Sep 17 00:00:00 2001 From: Nuvole Date: Thu, 7 Nov 2024 23:35:07 +0800 Subject: [PATCH] fix: path to past test --- joj3_config_generator/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/joj3_config_generator/main.py b/joj3_config_generator/main.py index 9b153c3..d91a0a7 100644 --- a/joj3_config_generator/main.py +++ b/joj3_config_generator/main.py @@ -51,10 +51,10 @@ def convert(root: Path = Path(".")) -> None: Convert given dir of JOJ3 toml config files to JOJ3 json config files """ 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 - task_toml_path = os.path.join(root, "task.toml") - result_json_path = os.path.join(root, "task.json") + task_toml_path = os.path.join(root, "basic", "task.toml") + result_json_path = os.path.join(root, "basic", "task.json") with open(repo_toml_path) as repo_file: repo_toml = repo_file.read() with open(task_toml_path) as task_file: