ignoring scripts in side03

This commit is contained in:
argoneus 2021-05-22 15:14:38 +02:00 committed by tomato
parent 6f83c7c8a7
commit d062c94d46

View file

@ -129,8 +129,14 @@ def load_locations(utage_in):
tokens = row["FileName"].split("/") tokens = row["FileName"].split("/")
if len(tokens) < 3: if len(tokens) < 3:
continue continue
if tokens[2] in locations: folder, _scenario, part_id = tokens
raise ValueError("Conflicting paths for file {tokens[2]}") # side03 seems to only contain prototype scripts so we ignore it
locations[tokens[2]] = tokens[0] if folder == "side03":
continue
if part_id in locations:
raise ValueError(
f"Conflicting paths for scene part {part_id}, existing folder: {locations[part_id]}"
)
locations[part_id] = folder
return locations return locations