mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
rule fixtures: script to regenerate all fixtures
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
directory = Path(__file__).parent
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
for path in directory.glob("*.ifc"):
|
||||||
|
path.unlink()
|
||||||
|
|
||||||
|
for path in sorted(directory.glob("generate_*.py")):
|
||||||
|
print(f"=== {path.name} ===")
|
||||||
|
subprocess.run([sys.executable, str(path)], cwd=directory, check=True)
|
||||||
Reference in New Issue
Block a user