Skip to content

Commit

Permalink
_main.py path split bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop authored Nov 12, 2023
1 parent 1a4eb03 commit 5393b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _main.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def generate_other_per_lang(lang: list, environment: Environment, page: dict):
result = template.render(is_static="static")

target_path = os.path.join(f"{OUTPUT_FOLDER}/" + i + "/", name)
os.makedirs(target_path.split()[0], exist_ok=True)
os.makedirs(os.path.split(target_path)[0], exist_ok=True)
with open(target_path, mode="w", encoding="UTF-8") as file:
file.write(result)
print(f"Generated all other pages: {GeneratorTool.get_curr_time_printable()}")
Expand Down

0 comments on commit 5393b0c

Please sign in to comment.