ignoring scripts in side03
This commit is contained in:
parent
2638b72b6b
commit
a9b671eb12
1 changed files with 9 additions and 3 deletions
|
|
@ -129,8 +129,14 @@ def load_locations(utage_in):
|
|||
tokens = row["FileName"].split("/")
|
||||
if len(tokens) < 3:
|
||||
continue
|
||||
if tokens[2] in locations:
|
||||
raise ValueError("Conflicting paths for file {tokens[2]}")
|
||||
locations[tokens[2]] = tokens[0]
|
||||
folder, _scenario, part_id = tokens
|
||||
# side03 seems to only contain prototype scripts so we ignore it
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue