ignoring scripts in side03
This commit is contained in:
parent
6f83c7c8a7
commit
d062c94d46
1 changed files with 9 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue