proper scene folder discovery

This commit is contained in:
louis 2019-11-12 18:45:11 -05:00
parent c87c517217
commit 4046e757ef
7 changed files with 94 additions and 31 deletions

View file

@ -30,7 +30,11 @@ def update_names(dir_in, old_path, languages):
langfile, "w", newline="\n"
) as lang_file: # you're using git right
json.dump(
out_dict, lang_file, ensure_ascii=False, indent="\t", sort_keys=True
out_dict,
lang_file,
ensure_ascii=False,
indent="\t",
sort_keys=True,
)
@ -97,6 +101,8 @@ def read_mission(tsv_path, char_names, char_sets):
if row["Command"] and row["Command"].startswith("//"):
continue
if row["Text"] and row["Arg1"]:
if (row["Arg1"] not in char_names) and (row["Arg1"] not in char_sets):
if (row["Arg1"] not in char_names) and (
row["Arg1"] not in char_sets
):
new_names.add(row["Arg1"])
return new_names