Update rule_executor.py

This commit is contained in:
Thomas Krijnen
2023-07-11 21:40:05 +02:00
committed by GitHub
parent 5d7fefa042
commit 74160731c9
@@ -92,7 +92,7 @@ def run(f, logger):
current_dir_files = {fn.lower(): fn for fn in os.listdir('.')}
schema_name = str(f.schema).split(' ')[-1].lower()
schema_path = current_dir_files.get(schema_name + '.exp')
fn = schema_name + '.py'
fn = schema_path[:-4] + '.py'
if not os.path.exists(fn):
subprocess.run([sys.executable, "-m", "ifcopenshell.express.rule_compiler", schema_path, fn], check=True)
time.sleep(1.)