From 25af42f4cbf29834fe5af6635aed6411b31e0d97 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 5 Jan 2023 18:37:14 +1100 Subject: [PATCH] Fix circular import of json_logger when doing import ifcopenshell.validate --- .../ifcopenshell/express/rule_executor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py index 37ed255989..475aeafb97 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py +++ b/src/ifcopenshell-python/ifcopenshell/express/rule_executor.py @@ -1,13 +1,9 @@ import os import ast import collections - +import ifcopenshell from dataclasses import dataclass from _pytest import assertion - -import ifcopenshell -from ifcopenshell.validate import json_logger - from codegen import indent def reverse_compile(s): @@ -161,6 +157,7 @@ if __name__ == "__main__": import json import logging import ifcopenshell + from ifcopenshell.validate import json_logger filenames = [x for x in sys.argv[1:] if not x.startswith("--")] flags = set(x for x in sys.argv[1:] if x.startswith("--"))