From a624c7e32d83a57422976bb528e5419a0cf6a52d Mon Sep 17 00:00:00 2001 From: James Date: Thu, 28 Dec 2023 12:25:55 +0000 Subject: [PATCH] refactor --- .../generate_new_day_skeleton_files_from_templates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/advent_of_code/scripts/generate_new_day_skeleton_files_from_templates.py b/src/advent_of_code/scripts/generate_new_day_skeleton_files_from_templates.py index 9742ad3..c435df3 100644 --- a/src/advent_of_code/scripts/generate_new_day_skeleton_files_from_templates.py +++ b/src/advent_of_code/scripts/generate_new_day_skeleton_files_from_templates.py @@ -51,7 +51,7 @@ def generate_file(template_file_path, input_day, input_year, output_file_path): day_file_dest = os.path.join( "src", "advent_of_code", f"year_{input_year}", f"days/{input_day}.py" ) - template_path = os.path.join(TEMPLATES_PATH, f"days_template.txt") + template_path = os.path.join(TEMPLATES_PATH, "days_template.txt") generate_file(template_path, input_day, input_year, day_file_dest) solvers_file_dest = os.path.join( @@ -60,11 +60,11 @@ def generate_file(template_file_path, input_day, input_year, output_file_path): f"year_{input_year}", f"solvers/day_{input_day}_solvers.py", ) - template_path = os.path.join(TEMPLATES_PATH, f"solvers_template.txt") + template_path = os.path.join(TEMPLATES_PATH, "solvers_template.txt") generate_file(template_path, input_day, input_year, solvers_file_dest) tests_file_dest = os.path.join( "tests", f"year_{input_year}", f"test_day_{input_day}_solvers.py" ) - template_path = os.path.join(TEMPLATES_PATH, f"tests_template.txt") + template_path = os.path.join(TEMPLATES_PATH, "tests_template.txt") generate_file(template_path, input_day, input_year, tests_file_dest)