From 74160731c92b647fd20cb5b5ed64a4f3c587c78d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 11 Jul 2023 21:40:05 +0200 Subject: [PATCH] Update rule_executor.py --- src/ifcopenshell-python/ifcopenshell/express/rule_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py index 8fef2521db..89c2d3bfa9 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py +++ b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py @@ -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.)