You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
420 B

2 years ago
import pathlib
def print_fixtures(name, scenes):
fixture_dir = (
pathlib.Path(__file__).resolve().parents[2] / "fixtures" / "3D")
print("-i", end=" ")
for scene in scenes:
for p in fixture_dir.glob(scene + ".json"):
if p.exists():
print(p, end=" ")
else:
raise Exception(f"{p} does not exist!")
print(f"-o {name}.csv", end="")