Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
James authored and James committed Dec 28, 2023
1 parent 2cbd0ee commit a624c7e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)

0 comments on commit a624c7e

Please sign in to comment.