Skip to content

Commit

Permalink
ensured locale/lang exists
Browse files Browse the repository at this point in the history
  • Loading branch information
anisghaoui committed Nov 24, 2024
1 parent bca1895 commit 2a74254
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compare_tools/format_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from compare_tools.Mod import Mod
from compare_tools.compare_configs import compare_configs
from configparser import ConfigParser
import os

TEXT_DISPLAYED = {
"added_keys": "These keys were added since last update",
Expand All @@ -21,6 +22,9 @@ def format_output(config_json, mod):

# Write the file section by section starting with the common ones
path = "output/" + mod.name + "/locale.cfg"
if not os.path.exists("output/" + mod.name):
os.makedirs("output/" + mod.name)

with open(path, "w+") as f:
# added_sections
for sections in "added_sections", "removed_sections":
Expand Down

0 comments on commit 2a74254

Please sign in to comment.